Messenger

How to programmatically call on-screen keyboard?

Unanswered 0 answers

Archived post from January 25, 2017. Product: Messenger – no longer developed by its maker. Details may be out of date.

Question asked on Jan 25, 2017

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?

No answers yet

Write an answer

Your email address will not be published. Please never post passwords.

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