Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: installer/src/installer-lib/process.cpp

Issue 4805711393456128: Remove the Repair button from Programs and Features. Fix the CA. (Closed)
Patch Set: Created June 30, 2014, 4:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include <stdexcept> 1 #include <stdexcept>
2 #include <functional> 2 #include <functional>
3 #include <wctype.h> 3 #include <wctype.h>
4 // <thread> is C++11, but implemented in VS2012 4 // <thread> is C++11, but implemented in VS2012
5 #include <thread> 5 #include <thread>
6 6
7 #include "installer-lib.h" 7 #include "installer-lib.h"
8 #include "process.h" 8 #include "process.h"
9 #include "handle.h" 9 #include "handle.h"
10 #include "session.h" 10 #include "session.h"
(...skipping 18 matching lines...) Expand all
29 Windows_Module_Handle user32Dll(LoadLibrary(L"user32.dll")); 29 Windows_Module_Handle user32Dll(LoadLibrary(L"user32.dll"));
30 if (!user32Dll) return true; 30 if (!user32Dll) return true;
31 31
32 IsImmersiveDynamicFunc IsImmersiveDynamicCall = (IsImmersiveDynamicFunc)GetP rocAddress(user32Dll, "IsImmersiveProcess"); 32 IsImmersiveDynamicFunc IsImmersiveDynamicCall = (IsImmersiveDynamicFunc)GetP rocAddress(user32Dll, "IsImmersiveProcess");
33 if (!IsImmersiveDynamicCall) return true; 33 if (!IsImmersiveDynamicCall) return true;
34 34
35 BOOL retValue = !IsImmersiveDynamicCall(procHandle); 35 BOOL retValue = !IsImmersiveDynamicCall(procHandle);
36 36
37 return retValue; 37 return retValue;
38 } 38 }
39 return false;
39 } 40 }
40 41
41 //------------------------------------------------------- 42 //-------------------------------------------------------
42 // creator_process 43 // creator_process
43 //------------------------------------------------------- 44 //-------------------------------------------------------
44 DWORD creator_process( HWND window ) 45 DWORD creator_process( HWND window )
45 { 46 {
46 DWORD pid ; 47 DWORD pid ;
47 DWORD r = GetWindowThreadProcessId( window, & pid ) ; 48 DWORD r = GetWindowThreadProcessId( window, & pid ) ;
48 if ( r == 0 ) 49 if ( r == 0 )
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 if ( ! is_running() ) 301 if ( ! is_running() )
301 { 302 {
302 return true ; 303 return true ;
303 } 304 }
304 } 305 }
305 // Assert is_running() 306 // Assert is_running()
306 } 307 }
307 // No control path leaves the for-loop. 308 // No control path leaves the for-loop.
308 } ; 309 } ;
309 310
OLDNEW
« no previous file with comments | « no previous file | installer/src/msi/adblockplusie.wxs » ('j') | installer/src/msi/custom_WixUI_InstallDir.wxs » ('J')

Powered by Google App Engine
This is Rietveld