(→FAQ)
|
(→FAQ)
|
Line 6: | |||
:Typically where you unzipped the SDK, and from there: \bcrctl\Version xxx\NETCF\bcrctl.net.dll. | :Typically where you unzipped the SDK, and from there: \bcrctl\Version xxx\NETCF\bcrctl.net.dll. | ||
- | '''How do I soft-reset the device programmatically?''' | + | '''How do I soft-reset the device programmatically from my .NET application?''' |
- | :[DllImport("coredll.dll", SetLastError = true)] | + | :In C#: |
+ | : [DllImport("coredll.dll", SetLastError = true)] | ||
static extern int SetSystemPowerState(string psState, int StateFlags, int Options); | static extern int SetSystemPowerState(string psState, int StateFlags, int Options); | ||
Line 14: | |||
:Then call | :Then call | ||
- | :SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE); | + | : SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE); |