Windows 7 Forums


Reply
Thread Tools

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

 
 
JPLAL JPLAL is offline
New Member
Join Date: Apr 2010
Posts: 2
Thanked: 0
 
      04-02-2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 08:27 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33