-
March 1st, 2005, 01:08 AM
#1
Ctrl-alt-delete....
Why doesn't this code bring up the Windows Security Window?????
=============================================
______________________________________________________________
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const KEYEVENTF_KEYUP = &H2
______________________________________________________________
Private Sub Form_Load()
keybd_event vbKeyControl, 0, 0, 0
keybd_event vbKeyAlt, 0, 0, 0
keybd_event vbKeyDelete, 0, 0, 0
DoEvents
keybd_event vbKeyControl, 0, KEYEVENTF_KEYUP, 0
keybd_event vbKeyAlt, 0, KEYEVENTF_KEYUP, 0
keybd_event vbKeyDelete, 0, KEYEVENTF_KEYUP, 0
DoEvents
End Sub
_______________________________________________________________
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
|