How can I access advanced power management functions (APM) in Win 2k thru delphi?
In dos I could just fire an interrupt like the one described in
http://www.ctyme.com/intr/rb-1414.htm . In Windows I get an exception.
I'd like to set the wakeup timer to wake up the system from soft-off state (S5) not via BIOS Setup but via Delphi Code.
Is there a Windows dll I can call? An api function?
Tnx Tommyjunge
Comments
:
: In dos I could just fire an interrupt like the one described in
: http://www.ctyme.com/intr/rb-1414.htm . In Windows I get an exception.
: I'd like to set the wakeup timer to wake up the system from soft-off state (S5) not via BIOS Setup but via Delphi Code.
:
: Is there a Windows dll I can call? An api function?
:
: Tnx Tommyjunge
:
Hi,
After i've done some research i found something that might help u it is a function placed in the KERNEL32.dll
[code]
POWERRET VPOWERD_Set_Resume_Timer(
LPPOWERTIME pPowerTime
);
[/code]
I think u should take a look at this page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/w98ddk/hh/w98ddk/vxd98_3cfm.asp
I Hope this helps u,
Greetz DJ Sannie.