Shutting down windows using win32api

Eugene C. hc_74 at yahoo.com
Thu May 22 17:13:31 EDT 2003


"Ulrich Petri" <ulope at gmx.de> wrote in message
news:baja11$dg5k$1 at ID-67890.news.dfncis.de...
> "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
>
It appears that you can make this call to a remote system, but when you make
the call to the local system, an 'access denied' error is the result.






More information about the Python-list mailing list