Shutting down windows using win32api
Carl Banks
imbosol at aerojockey.com
Sun May 18 14:21:36 EDT 2003
Josh wrote:
> 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?
That depends on exactly how you're trying to shutdown Windows in C.
If you're doing it like this:
http://tinyurl.com/c22w
then you won't be able to do it the same way in Python.
--
CARL BANKS
More information about the Python-list
mailing list