EgtExecutor 1.8b6 :
- aggiunta impostazione handle finestra principale dell'exe per dialoghi della dll.
This commit is contained in:
+3
-2
@@ -27,14 +27,15 @@ FindTopWindow( void)
|
||||
pair<HWND, DWORD> params = { 0, pid} ;
|
||||
|
||||
// Enumerate the windows using a lambda to process each window
|
||||
SetLastError( 0) ;
|
||||
BOOL bResult = EnumWindows( []( HWND hWnd, LPARAM lParam) -> BOOL
|
||||
{
|
||||
auto pParams = ( pair<HWND, DWORD>*)(lParam) ;
|
||||
|
||||
DWORD processId ;
|
||||
if ( GetWindowThreadProcessId( hWnd, &processId) &&
|
||||
if ( GetWindowThreadProcessId( hWnd, &processId) != NULL &&
|
||||
processId == pParams->second &&
|
||||
GetWindow( hWnd, GW_OWNER) == (HWND) nullptr &&
|
||||
GetWindow( hWnd, GW_OWNER) == NULL &&
|
||||
IsWindowVisible( hWnd)) {
|
||||
// Stop enumerating
|
||||
SetLastError( -1) ;
|
||||
|
||||
Reference in New Issue
Block a user