Hi there,
If you wanna turn off your wince7 device, programmatically.
How to exit windows from your application, before pushing power button?
Regards
Palsson
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
If you wanna turn off your wince7 device, programmatically.
How to exit windows from your application, before pushing power button?
Regards
Palsson
Follow the below steps in this regard :
RETAILMSG(1,(TEXT("TPS: Turn off file system drivers...\r\n")));
FileSystemPowerFunction(FSNOTIFY_POWER_OFF);
Sleep(1000);
RETAILMSG(1,(TEXT("TPS: Set kernel to do final \
power down...\r\n")));
SetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE);
Sleep(1000);
RETAILMSG(1,(TEXT("TPS: Turned to suspend state...\n")));
PowerOffSystem();
/* *************************************
* Do the final turn of here using command to H/W
******************************************/
Hope this will help
--- Misbah