Go to previous topic
Go to next topic
Last Post 19 Apr 2010 05:39 AM by  szakeri555@yahoo.com
reset windows ce 5.0 on imx31 programmatically
 0 Replies
Author Messages
szakeri555@yahoo.com
New Member
New Member
Posts:


--
19 Apr 2010 05:39 AM
    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);
    }


    ---