Answer the question
In order to leave comments, you need to log in
How to store 64bit HWND in 32bit application?
Hello, I open a 64bit application (for example, a keyboard) from under 32bit
system("C:\\Windows\\sysnative\\osk.exe");
And I get the hwnd of the application window
HWND hwnd;
findTargetHwnd:
hwnd = FindWindowA(NULL, "On-Screen Keyboard");
if (!hwnd) {
Sleep(500);
goto findTargetHwnd;
}
SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question