If you want to call the functions in my shutdown.dll from Visual Basic, I have provided the declarations below.  Paste them into a module and then you can just call each function. Note you have to use a 32bit version of Visual Basic (4.0 32 onwards).

Mark Gillespie
17th April 2002

'start declarations

Public Declare Function Hibernate_Force Lib "shutdown" () As Long
Public Declare Function Hibernate Lib "shutdown" () As Long
Public Declare Function Suspend Lib "shutdown" () As Long
Public Declare Function Suspend_Force Lib "shutdown" () As Long
Public Declare Function shutdown Lib "shutdown" () As Long
Public Declare Function Shutdown_Force Lib "shutdown" () As Long
Public Declare Function Reboot Lib "shutdown" () As Long
Public Declare Function LogOff Lib "shutdown" () As Long
Public Declare Function Reboot_Force Lib "shutdown" () As Long
Public Declare Function LogOff_Force Lib "shutdown" () As Long

' end declarations





