Shutdown windows95 in VB? 
Author Message
 Shutdown windows95 in VB?

in your form event:

Call ExitWindows(0, EWX_SHUTDOWN)

in your module:

 Declare Function ExitWindows Lib "User32" _
                             Alias "ExitWindowsEx" (ByVal _
                             dwOptions As Long, _
                             ByVal dwReserved As Long) As Long

 Public Const EWX_LOGOFF = 0
 Public Const EWX_SHUTDOWN = 1
 Public Const EWX_REBOOT = 2
 Public Const EWX_FORCE = 4

Don't quote me on this but it works on NT.

    Use the API ExitWindowsEx with the arguments 4, 0

        Does anyone know the API to shutdown Windows95  in VB?
        Thanks for any remarks!!


Sat, 30 Jun 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. windows95 shutdown/wait/restart?

2. Windows95 Shutdown

3. Intercepting Windows95 Shutdown

4. Help! ShutDown Windows95 using VB4

5. Unable to Shutdown Windows95 & reboot via WSH

6. vb4-windows95 shutdown routine

7. Shutdown Windows95

8. How to Shutdown Windows95

9. Shutdown Windows95

10. Access97, VBA, Win32, API, Windows95: CreateEvent returns 0 with Windows95

11. Automatic Shutdown of Application when Windows is shutdown

12. Automatic shutdown of application when windows is shutdown


Powered by phpBB® Forum Software