Talk2Tom11
Well-known member
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]
[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]