|
-
Jun 13th, 2000, 02:05 PM
#1
Thread Starter
New Member
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?
-
Jun 15th, 2000, 08:46 PM
#2
New Member
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
-
Jun 16th, 2000, 02:21 PM
#3
Thread Starter
New Member
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...
-
Jun 18th, 2000, 08:41 PM
#4
New Member
I know, but LogonUser has a way of doing it.
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
-
Jul 12th, 2000, 01:14 PM
#5
Lively Member
Well, I know it's possible to simulate Ctrl+Alt+Del, because PCAnywhere can do it.
- Steve
Real programmers use COPY CON PROGRAM.EXE
-
Jul 12th, 2000, 02:10 PM
#6
New Member
CTRL-ALT-DEL
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|