I'm attempting to replace some super-old code embedded in our program with our own On-Screen Keyboard with a simple call to the Windows 7 one (%windir%\system32\osk.exe)
I wrote the below as an experiment to make sure I knew it worked:
I instead get the error message "Could Not Start On-Screen Keyboard".
Now I've verified that I can open it manually. I've attempted to run my visual studio and ithe built executable as an administrator directly (in case it mattered.) I've also verified that cmd.exe can be opened without additional "Run As Administrator" calls.
Any thoughts as to why it won't open specifically?
I'm guessing that it's because the "system" command is unsafe and Windows isn't letting you launch anything via it with it's required permissions. Try using the "ShellExecute" function.