Issue with Windows 7 32/64 bit and Windows 2008 R2 environments

Joined
Apr 2, 2010
Messages
2
Reaction score
0
Hi Friends,
I am facing issue when I am trying of open OSK.EXE (On-Screen Keyboard) through ShellExecute() in both Windows 7 32/64 bit and Windows 2008 R2 environments. OSK is not getting popped up after executing the command.
My source code’s statement follows:
Statement1: ShellExecute ( pWnd, "open", "C:\\WINDOWS\\system32\\osk.exe", NULL, NULL, SW_SHOWNORMAL);
Note (FYI):
(1) If I execute following statement2 by putting OSK.EXE in C:\, then On – Screen Keyboard is getting popped up.

Statement2: ShellExecute ( pWnd, "open", "C:\\osk.exe", NULL, NULL, SW_SHOWNORMAL);
(2) Statement1 is successfully executed on XP, W2K Server and Vista with expected behavior.
(3) If I try to get the last error through GetLastError() after executing the Statement 1, “Operation has been performed successfully” is translated from the return value of the GetLastError().
(4) On my Windows 7 machine, UAC is disable.
(5) I am running ShellExecute() function by logging through the login ID having added to administrator group.
Please guide me for executing the Statement1.
Thanks in advance.
JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top