Shutting down windows using win32api
Ulrich Petri
ulope at gmx.de
Thu May 22 15:56:19 EDT 2003
"Josh" <mlsj at earthlink.net> schrieb im Newsbeitrag
news:Xns937F7C9E0D020jslmAAearthlinknet at 130.133.1.4...
> 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?
>
Maybe you should have a look at the "ExitWindows" and/or "ExitWindowsEx" API
calls.
Ciao Ulrich
More information about the Python-list
mailing list