|
-
Jan 17th, 2000, 06:42 AM
#1
Thread Starter
Lively Member
I have created a password program for when windows starts up just practising my VB.
I was wondering how I would go about re-booting the machine if the user types in the wrong password more than say, 3 times?
Thanks
brjames
-
Jan 17th, 2000, 07:03 AM
#2
I know there is an API to bring up the shutdown window....I think there is also one to reboot but I cant find it...must be on my other computer....ill try and get back to you

Glenn Harwood
-
Jan 17th, 2000, 10:20 AM
#3
PowerPoster
Check out http://www.vbsquare.com/tips/tip179.html
Regards,
------------------
- Chris
[email protected]
If it ain't broke - don't fix it 
-
Jan 17th, 2000, 11:35 AM
#4
Registered User
This will reboot your computer:
Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
ExitWindowsEx 2, 1
'If you wish turn off
'ExitWindowsEx 1, 0
Jefferson
Jefferson
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
|