I am trying to make a program similar to insomnia so I don't lose any more large downloads
when my hard drive goes to reduced power mode.
; invoke CreateThread ; may need this
invoke SetThreadExecutionState,ES_CONTINUOUS
invoke Sleep,30000 ; this is probably counter productive
invoke ExitProcess,0
end start
is there a reason for not using Control Panel/Power Options/Power Schemes
you can create custom themes and switch between them
Can I just double click to switch back and forth?
Andy
well - i guess if you want to do that, you can make the themes in control panel
then use SetActivePwrScheme using powrprof.inc/lib
i guess they are "schemes" - not "themes" - lol
other functions...
EnumPwrSchemes
GetActivePwrScheme
there are more - see powrprof.inc
For now, I will work with SetThreadExecutionState.
It looks easier to get functional.
Andy