> Or use the API function ExitWindowsEx. AFAIK, ExitWindowsEx only works on the local machine. The original question was how to shutdown and restart a remote machine. I checked the API and don't see any parameter for specifying the remote machine.
If anyone know an API method for doing what the SHUTDOWN command does with a remote machine specified, I would be interested in that. Glenn Lawler ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

