Link to home
Start Free TrialLog in
Avatar of mhdhallak
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?
ASKER CERTIFIED SOLUTION
Avatar of shyamkumarreddy
shyamkumarreddy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of polaughlin
polaughlin

Try this:

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
By the way, the above will also work in Windows 98.