D
Doug Bell
Hi,
I am trying to use P/Invoke to shutdown the mobile device and I keep getting
an error:
Can't find an Entry Point 'ExitWindowsEx' in a PInvoke DLL 'coredll.dll'.
I am using:
<Runtime.InteropServices.DllImport("coredll.dll")> _
Public Function ExitWindowsEx(ByVal uFlags As Integer, _
ByVal dwReserved As Integer) As Int32
End Function
Passing
EWX_POWEROFF = &H8 and
SHTDN_REASON_MAJOR_OTHER = &H0
Thanks for any assistance
Doug
I am trying to use P/Invoke to shutdown the mobile device and I keep getting
an error:
Can't find an Entry Point 'ExitWindowsEx' in a PInvoke DLL 'coredll.dll'.
I am using:
<Runtime.InteropServices.DllImport("coredll.dll")> _
Public Function ExitWindowsEx(ByVal uFlags As Integer, _
ByVal dwReserved As Integer) As Int32
End Function
Passing
EWX_POWEROFF = &H8 and
SHTDN_REASON_MAJOR_OTHER = &H0
Thanks for any assistance
Doug