D
D
dominy2021-08-30 14:31:02
C++ / C#
dominy, 2021-08-30 14:31:02

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;
  }

Then I need to for example resize the keyboard window
SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);

How to do it from 32bit application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2021-08-30
@dominy

No
https://stackoverflow.com/questions/43817163/sendm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question