does anyone know how to do this? I need to force a device reboot programmatically from within Windows CE.
Does this work:
[DllImport("aygshell.dll")]
private static extern bool ExitWindowsEx(uint uFlags, int dwReserved);
const uint EWX_REBOOT = 0x00000002;
const uint EWX_POWEROFF = 0x00000008;
private void SoftReset()
{
ExitWindowsEx(EWX_REBOOT, 0);
}
|