Le 26 mai 2010 à 23:01, Julian. a écrit :
> what is the correct way to send the computer to sleep? i couldn't find
> anything in the documentation, except appleevents...
#include
void SystemSleep() {
io_connect_t port = IOPMFindPowerManagement(MACH_PORT_NULL);
IOPMSleepSystem(port);
IOS
If you need to make the computer sleep immediately, you can use the command
"/usr/bin/pmset sleepnow".
Jeff Kelley
slaun...@umich.edu
On May 26, 2010, at 5:01 PM, Julian. wrote:
> what is the correct way to send the computer to sleep? i couldn't find
> anything in the documentation, except app
what is the correct way to send the computer to sleep? i couldn't find anything
in the documentation, except appleevents...
thanks, Julian.___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments t