Re: [python-win32] Standby/Hibernate

2008-06-05 Thread Rickey, Kyle W
, June 05, 2008 3:30 AM Cc: python-win32@python.org Subject: Re: [python-win32] Standby/Hibernate Rickey, Kyle W wrote: > What do I need to do to put my local computer into standby? I found the > function: > > win32api.InitiateSystemShutdown("INT8Y4Y3B1", "Tom Sucks",

Re: [python-win32] Standby/Hibernate

2008-06-05 Thread Tim Golden
Rickey, Kyle W wrote: What do I need to do to put my local computer into standby? I found the function: win32api.InitiateSystemShutdown("INT8Y4Y3B1", "Tom Sucks", 300, False, False) but it seems to only shutdown/restart. You need the SetSystemPowerState [1] function from kernel32. (And your