Results 1 to 11 of 11

Thread: The locked down my OS

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    LewZer-LanD
    Posts
    120
    Any way i can force windows 2000 pro. into locked mode?? and i dont mean sleep, standby, or hibernate.

    thanx!
    Kid A

    18 Year Old Programmer
    Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
    [vbcode]
    'back in the day vb6 code
    Private Sub My_Life()
    If Hour(Now) > 3 And Hour(Now) < 13 Then
    Status = "Sleeping"
    Else
    Status = "Computing"
    End If
    End Sub
    [/vbcode]

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    LewZer-LanD
    Posts
    120
    Well i would do that but the fact of the matter is....
    You cant make a program do things like that when it's locked because you could very easily make a proggie that unlocks it.

    There has to be a api layin' around sumwhere....
    Kid A

    18 Year Old Programmer
    Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
    [vbcode]
    'back in the day vb6 code
    Private Sub My_Life()
    If Hour(Now) > 3 And Hour(Now) < 13 Then
    Status = "Sleeping"
    Else
    Status = "Computing"
    End If
    End Sub
    [/vbcode]

  3. #3
    Junior Member
    Join Date
    Feb 2000
    Posts
    31
    'Add this to your project
    '*******************************************

    Private Declare Sub LockWorkStation Lib "user32.dll" ()

    'Example usage:

    Private Sub Command1_Click()
    LockWorkStation
    End Sub

  4. #4
    Member hgroot's Avatar
    Join Date
    Dec 2001
    Location
    Amsterdam
    Posts
    52
    Visual Programmer, sending CTRL-ALT-DEL is impossible. I am writing a macrorecorder and this is the only keystroke that can't be performed. I think it's a security issue. Maybe the keystroke is still queued, but ignored.

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Originally posted by hgroot
    Visual Programmer, sending CTRL-ALT-DEL is impossible. I am writing a macrorecorder and this is the only keystroke that can't be performed. I think it's a security issue. Maybe the keystroke is still queued, but ignored.
    Yeah you can't use a global hook to catch CTRL-ALT-DEL
    Its to make sure people don't hack the box or whatever
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    Member hgroot's Avatar
    Join Date
    Dec 2001
    Location
    Amsterdam
    Posts
    52
    There's probably still a way to do it. For example, in a Citrix client you can remotely send CTRL-ALT-DEL.
    Though not by using a 'simple' sendkey.

  7. #7
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Hmmm.
    Well yeah I'd say you can possibly send CTRL-ALT-DEL, because I know Microsoft NetMeeting can do it when you're controlling remote desktops. We use that for administering and fixing remote servers.

    You just can't catch it is all... or so I read
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  8. #8
    Lively Member AndySoft's Avatar
    Join Date
    Oct 2000
    Location
    Massillon, OH
    Posts
    68

    Lightbulb But if NetMeeting can send it...

    Then NetMeeting can capture it...
    -AndySoft
    [email protected]
    [email protected] (Use the other one first!)

    I use: NASM, HTML, Perl, PHP, JavaScript, Batch, TI-Basic (TI-83+), QBasic 1.1, QuickBASIC 4.5, QuickBASIC Extended 7.1, VB-WIN 6 Ent., and the rest of Visual Studio 6 Ent. And who knows what else!

  9. #9
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I do this from a Windows9x machine. Win9x doesn't have that security "feature"
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  10. #10
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I was thinking about CTRL-ALT-DEL. It is a security feature built into NT - there's an article on that at MS. What if you replace the keyboard driver or something at a lower level with your own custom version?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  11. #11
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Hmmm... though you'd have to not pass the keystrokes up to a higher level if it was ctrl-alt-del...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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