Click to See Complete Forum and Search --> : Simulating Ctrl-Alt-Delete under NT/2K
Salty
Jun 13th, 2000, 02:05 PM
I've been trying to find a way of simulating a Ctrl-alt-Delete keypress under NT/2K does anyone have any idea how to do this. I've tried both the keybd_event and send input functions but so far I have been unsuccessful in getting them to simulate the ctrl-alt-delete keypress
Any ideas?
shekhar
Jun 15th, 2000, 08:46 PM
Originally posted by Salty
I've been trying to find a way of simulating a Ctrl-alt-Delete keypress under NT/2K does anyone have any idea how to do this. I've tried both the keybd_event and send input functions but so far I have been unsuccessful in getting them to simulate the ctrl-alt-delete keypress
Any ideas?
I think the only way to do it Programatically is to Call "LogonUser" within the library "advapi32.dll" in an interactive mode.
I have been trying this for a long time too. But I am missing some key information.
Shekhar
Salty
Jun 16th, 2000, 02:21 PM
Why, what information are you missing?
I thought I should just clear something up. You mentioned using the logonuser api. I actually want to be able to simulate the ctrl-alt-delete as if the user pressed these keys. ie. the logon box or options box appears under NT/2000
Not sure whether that's what you thought I meant...
shekhar
Jun 18th, 2000, 08:41 PM
LogonUser has an argument called "dwLogonType" which can take one of these values...
Dim LOGON_INTERACTIVE As Long = 2
Dim LOGON_NETWORK As Long = 3
Dim LOGON_BATCH As Long = 4
Dim LOGON_SERVICE As Long = 5
If you called LogonUser with dwLogonType = 2, you should get a DialogBox.
Anyway, about my problem, I dont know what I am missing.
I have tried it on my computer and another computer. But with my login ID in both places. I am yet to try it on somebody else's login ID. But I am able to login on my machine every morning. So I am missing something. I just dont know exactly what it is yet.
Shekhar
Stevie-O
Jul 12th, 2000, 01:14 PM
Well, I know it's possible to simulate Ctrl+Alt+Del, because PCAnywhere can do it.
Cyberprog
Jul 12th, 2000, 02:10 PM
As I understand it, Microsoft were quite pissed about it... although this might be because PC Anywhere had help from Microsoft.... anyway it shouldn't be possible... but it is... aaaarrrrrgghhhhh!!!!
Control.
Calm.
Illogical... yet locgical.
Maybe yet maybe not.
Smeg.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.