Results 1 to 6 of 6

Thread: Simulating Ctrl-Alt-Delete under NT/2K

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Brisbane, Australia
    Posts
    2

    Exclamation

    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?

  2. #2
    New Member
    Join Date
    Jun 2000
    Location
    New York
    Posts
    2

    Wink

    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
    TIA
    Shekhar

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Brisbane, Australia
    Posts
    2

    Exclamation

    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...

  4. #4
    New Member
    Join Date
    Jun 2000
    Location
    New York
    Posts
    2

    Cool 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
    TIA
    Shekhar

  5. #5
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    Well, I know it's possible to simulate Ctrl+Alt+Del, because PCAnywhere can do it.
    - Steve

    Real programmers use COPY CON PROGRAM.EXE

  6. #6

    Unhappy 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
  •  



Click Here to Expand Forum to Full Width