Win32Shutdown method
From: Han Log (aaa_at_aaa.com)
Date: 02/24/04
- Next message: [MS] Scott McNairy: "Re: build version"
- Previous message: Viatcheslav V. Vassiliev: "Re: How to get System Resources info?"
- Next in thread: Soo Kuan Teo [MS]: "Re: Win32Shutdown method"
- Reply: Soo Kuan Teo [MS]: "Re: Win32Shutdown method"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 16:09:04 +0100
Hi,
I'm use System.Management classes for invoke the Win32Shutdown method (via
InvokeMethod).
I pass the 8+4 argument because I want to power off the computer.
All works fine but the problem is when I use the same code on a windows
service.
If nobody has been logon, the result is a blank screen instead power off the
computer.
(the initial login screen for Windows XP Pro dissapear)
When press Ctrl+Alt+Supr a validation form appear over the blank screen.
My question is if it's possible to power off the computer (programaticaly)
without nobody logon.
Thank you
- Next message: [MS] Scott McNairy: "Re: build version"
- Previous message: Viatcheslav V. Vassiliev: "Re: How to get System Resources info?"
- Next in thread: Soo Kuan Teo [MS]: "Re: Win32Shutdown method"
- Reply: Soo Kuan Teo [MS]: "Re: Win32Shutdown method"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|