ExitWindowsEx()

Jerome Chan eviltofu at rocketmail.com
Thu Jun 29 18:16:49 EDT 2000


In article <8jg1mk$e1s$1 at nnrp2.deja.com>, npnigro at my-deja.com wrote:

> I'm having a problem executing ExitWindowsEx() to
> force reboot my Win95/Win98 machine.  The
> following is my code:
> 
> import win32api
> win32api.ExitWindowsEx(4 Or 2,0)
> 
> The call does not reboot the machine as it is
> supposed to.  Am missing something?  I'm using
> build 132... Thanks in advance
> 
> Nick
> 
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

You have to run using pythonwin. Name the file with suffix .pyw then run 
it and see?



More information about the Python-list mailing list