I'm trying to close windows on-screen keyboard (osk.exe) in c++ code, but without any success.
HWND kbIsOpen = FindWindow(TEXT("OSKMainClass"),NULL);
CloseWindow(kbIsOpen);
CloseWindow
or SendMessage
didn't to anything.
Note that the problem is not in kbIsOpen
, and also getLastError
returns 5 (ERROR_ACCESS_DENIED)
.
What I can do to deal with this problem?