Shut down windows

Talk2Tom11

Well-known member
Joined
Feb 22, 2004
Messages
144
Location
Westchester, NY
I was wondering if anyone could convert this code which is in VB6 to .Net for me. It is code to shut down windows.

[VB]Private Const EWX_SHUTDOWN As Long = 1
Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long



shut down the computer
lngResult = ExitWindowsEx(EWX_SHUTDOWN, 0&)[/VB]
 
Back
Top