Win32Shutdown method

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Han Log (aaa_at_aaa.com)
Date: 02/24/04


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



Relevant Pages

  • Re: XP freeses up Outlook and Network connection
    ... It is a Dell inspirion laptop. ... > is to power down and reset it. ... If you are running Windows ME or XP, ... the most recent System Restore point from the More ...
    (microsoft.public.windowsxp.general)
  • Computer wont start and 16 bit Windows Subsystem
    ... installation, which gave us both new desktops profiles. ... This first problem started about a week after I downloaded Windows Update ... the power button on front of the tower, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Computer wont start and 16 bit Windows Subsystem
    ... > installation, which gave us both new desktops profiles. ... > This first problem started about a week after I downloaded Windows Update ... > the power button on front of the tower, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: APM issue: computer reboots on Shutdown, locks up on Stand By
    ... Microsoft MVP [Windows] ... Am working through various KB articles troubleshooting an APM issue ... shutdown proceeds normally, Windows closes out and the power goes off, ... not appear after a fresh install of Win2K, ...
    (microsoft.public.win2000.general)
  • The Trouble with battery backup and Windows XP
    ... We install Windows XP Pro systems to run mini ... to hibernate and before the battery backup enters sleep mode that if the ... normal power is restored the PC will never reboot. ... battery backup reaches sleep mode, then when power returns the system wakes ...
    (microsoft.public.windowsxp.help_and_support)