I have the following code:
memset(&sei, 0, sizeof(sei));
sei.lpVerb = L"runas";
sei.cbSize = sizeof(sei);
sei.lpFile = L"C:\\windows\\system32\\osk.exe";
sei.lpParameters = L"";
sei.nShow = SW_SHOW;
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
HANDLE hProcess = ShellExecuteEx(&sei) ? sei.hProcess : 0;
the problem is that hProcess has a process handle which is different from actual on-screen keyboard process. How can I get the right one?
Recent Comments