B
binarylife9
hello,
i am trying this code on WM5 Emulator and its not working, it throws a
notsupported exception. i tried on my WM5 Device and its not working.
can anybody tell how to Shutdown/Reboot a SP ?
Private Declare Function ExitWindowsEx Lib "Coredll.dll" Alias
"ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As
Int32
'To Shutdown
ExitWindowsEx(EWX_SHUTDOWN, 0)
'To Reboot
ExitWindowsEx(EWX_REBOOT, 0)
thanks,
AB
i am trying this code on WM5 Emulator and its not working, it throws a
notsupported exception. i tried on my WM5 Device and its not working.
can anybody tell how to Shutdown/Reboot a SP ?
Private Declare Function ExitWindowsEx Lib "Coredll.dll" Alias
"ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As
Int32
'To Shutdown
ExitWindowsEx(EWX_SHUTDOWN, 0)
'To Reboot
ExitWindowsEx(EWX_REBOOT, 0)
thanks,
AB