Tony Cappellini wrote:
>I would like to write a simple program so I can initiate a Shutdown (power
> off), Restart, or Switch User.
> 
> Would someone point to  the API's that  I need to do this?

You can do a shutdown or reboot with win32api.ExitWindowsEx.
To switch users, use win32ts.WTSDisconnectSession.

    Roger

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to