| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |