Shutting down windows using win32api

Josh mlsj at earthlink.net
Sun May 18 13:14:59 EDT 2003


While I have been programming in Python for quite some time, I am a newbie 
at Win 32 API. I spent all of yesterday trying to figure out a way to 
shutdown the local computer using InitiateSystemShutdown. I just couldn't 
do it. Could someone walk me through the steps required(an example script 
would be nice too). I went through the documentation for win32all as well 
as the MSDN website. I understand how I can do it from a C program but how 
do you it do with Python?

Thanks

Josh




More information about the Python-list mailing list