so kindly help me , not to go away my pc into idle mode, via programatically or via pc Settings.
Via PC settings, simply set your power settings via the control panel and choose an "always on" profile.
In code. Loosely:
void main()
{
SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);
DoEverything();
SetThreadExecutionState(ES_CONTINUOUS);
}
Thanx for this help,
I have tried windows option from control panel.
also i want to try code method.
which namespace this method is in , let me know.
No comments:
Post a Comment