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?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.