Sending ALT+CTRL+DEL to the system
-
Hi, I want to send the keyboard message of ALT+CTRL+DEL to the system and Lock the computer programatically. I have tried the functions SendInput() and keybd_event() functions but they fail to send to this combination of key strokes while they send all other combinations of Keys inputs. Could anybody suggest me a way out? Thanks Vijay :) Vijay S
-
Hi, I want to send the keyboard message of ALT+CTRL+DEL to the system and Lock the computer programatically. I have tried the functions SendInput() and keybd_event() functions but they fail to send to this combination of key strokes while they send all other combinations of Keys inputs. Could anybody suggest me a way out? Thanks Vijay :) Vijay S
Use BOOL LockWorkStation(VOID); Windows NT: Requires version 5.0 or later. Zolee
-
Use BOOL LockWorkStation(VOID); Windows NT: Requires version 5.0 or later. Zolee
Thanks Zoltan for your reply . But I am having a peculiar problem . I am not able to use the Function LockWorkStation(). I have included the file Windows.h and I am working on Windows 2000 Advanced Server. Still my code is not able to compile saying that the function is an undeclared identifier. In fact I am successfully able to use other similar functions like ExitWindows() etc. I even opened the Winuser.h (which is included in Windows.h and the function definition is there. I even tried it on other computers but the same result.?? And believe me I am not making a spelling mistake. If only you could make something out of it. :(( Vijay S
-
Thanks Zoltan for your reply . But I am having a peculiar problem . I am not able to use the Function LockWorkStation(). I have included the file Windows.h and I am working on Windows 2000 Advanced Server. Still my code is not able to compile saying that the function is an undeclared identifier. In fact I am successfully able to use other similar functions like ExitWindows() etc. I even opened the Winuser.h (which is included in Windows.h and the function definition is there. I even tried it on other computers but the same result.?? And believe me I am not making a spelling mistake. If only you could make something out of it. :(( Vijay S
You have to define _WIN32_WINNT = 0x0500 in the project settings. Go to project setting and this to the preprocessor definitions: _WIN32_WINNT=0x500 This will mean your code is for Win2000/XP Zolee
-
Thanks Zoltan for your reply . But I am having a peculiar problem . I am not able to use the Function LockWorkStation(). I have included the file Windows.h and I am working on Windows 2000 Advanced Server. Still my code is not able to compile saying that the function is an undeclared identifier. In fact I am successfully able to use other similar functions like ExitWindows() etc. I even opened the Winuser.h (which is included in Windows.h and the function definition is there. I even tried it on other computers but the same result.?? And believe me I am not making a spelling mistake. If only you could make something out of it. :(( Vijay S