Welcome! and rules
Joel on Software
Automatic shutting down of windows xp
i wonder if there is a way to write a function using win32 API or .NET to automatically shut down windows xp when called.Then i can put the function in the comsumer application in WMI using the Start method to listen to the provider application which fires the event since the System.Management provides the wrapper for WMI.
Are you doing this as a part of a package installation or do you want your application to be able to shut down Windows XP?
Google for the Win32 ExitWindowsEX function. There may be some issues with permissions if you are not an administrator.
Funnily enough I discovered on www.pinvoke.net the other day...
Fog Creek Home