Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext 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
Sort:
You are not authorized to post a reply.
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);
    }
    You are not authorized to post a reply.