SleepAndWakeUp
http://www.mirrorservice.org/sites/f...ll/aspower.zip
int asSleepAndWakeUpS(int n);
int asSleepAndWakeUp(int nDay,int nH,int nM,int nS);
First function have just one parameter, number of seconds. This will be time interval.
Another function will use more. You will set after what time interval you want PC to
wake UP. Remember, after you call this function, we create wait timer function and we
put PC to sleep. PC must have new motherboard with ACPI support.
----------------
int asOnlySetWakeUpTime(int nYear,
int nMonth,
int nDay,
int nHour,
int nMinute,
int nSecond);
This function will ONLY SET TIME when you want your PC to wake up. So, after
calling this function, you can continue working with your application, but put your PC to
sleep before this time. Please we don’t check these parameters, so YOU MUST provide
parameters checking. That moment of time MUST be after current time.