Go to previous topic
Go to next topic
Last Post 16 Apr 2010 02:43 PM by  szakeri555@yahoo.com
reset winows ce 5.0 on imx31 programmatically
 0 Replies
Author Messages
szakeri555@yahoo.com
New Member
New Member
Posts:


--
16 Apr 2010 02:43 PM
    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);
    }


    ---