mhdhallak
asked on
Shutting down Windows 95
How do we SHUT DOWN windows 95?
(Please, I need the code to shut it down, not restart it!)
Is this procedure the same as for Windows 98?
(Please, I need the code to shut it down, not restart it!)
Is this procedure the same as for Windows 98?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way, the above will also work in Windows 98.
Private declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Boolean
Dim success As Boolean
success = ExitWindowsEx(1, 0)
You can also use, instead of '1':
0 - logoff
2 - restart