Messenger

How to programmatically call on-screen keyboard?

待回答 0 个回答

归档帖子,发布于 2017年1月25日。 产品:Messenger(已停止开发)。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2017年1月25日

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?

暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

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