(→FAQ)
|
(→FAQ)
|
Line 5: | |||
'''Where is the .NET SDK DLL?''' | '''Where is the .NET SDK DLL?''' | ||
: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?''' | ||
+ | :[DllImport("coredll.dll", SetLastError = true)] | ||
+ | static extern int SetSystemPowerState(string psState, int StateFlags, int Options); | ||
+ | const int POWER_FORCE = 4096; | ||
+ | const int POWER_STATE_RESET = 0x00800000; | ||
+ | :Then call | ||
+ | :SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE); |