Link to home
Start Free TrialLog in
Avatar of AvatarusChilensis
AvatarusChilensis

asked on

Simulate Ctrl+Alt+Del in delphi

Hi, I want to simulate an Ctrl+Alt+Del keystroke for a remote control app. I try the next code but it doesn't works:

procedure TForm1.Button4Click(Sender: TObject);
begin
keybd_event(VK_CONTROL,0,0,0);
keybd_event(VK_MENU,0,0,0);
keybd_event(VK_DELETE,0,0,0);
keybd_event(VK_DELETE,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);
end;

thx
Avatar of robert_marquardt
robert_marquardt

Sorry, this sequence is protected and cannot be generated with keybd_event.
Avatar of AvatarusChilensis

ASKER

is there any other way to generate this action?
AFAIK not without driver.
thanks, but what kind of driver could it be??
Do you need to reboot or do you really need to simulate the CTLR-ALT-DEL?
simulate Ctrl+Alt+Del to pop up the Close Session or Block workstation on Windows NT/2000
ASKER CERTIFIED SOLUTION
Avatar of loop_until
loop_until

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that's good enough
;)