borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Getting a window path)Next Topic (HELP ME) New Topic New Poll Post Reply
AndreaVB Forum : API : w2k shutdown - advapi32
Poster Message
ricardo
Level: Guest


icon w2k shutdown - advapi32

Hi,
I read the tip060004 and i used the code to write a shutdown executable. I've complemented the code to enable the SE_SHUTDOWN_NAME privilege.
But, has it says in MSDN, "System shutdown brings the system to a condition in which it is safe to turn off the computer.".
This means that when i execute the code i get the windows screen saying that "it is now safe to turn off the computer" but i still have to press the shutdown button on the machine.
What i want is to execute the code and the system simply turn off without any further intervention from a user, has it is done by the windows command.
What's missing?

23-01-2004 at 08:07 PM
| Quote Reply
Lycaon
Level: Guest

icon Re: w2k shutdown - advapi32

Generally you see that screen on computers with an AT case / power supply.  I'm not 100% sure but the auto-powerdown is only a feature on ATX cases.

23-06-2004 at 02:44 PM
| Quote Reply
AndreaVB Forum : API : w2k shutdown - advapi32
Previous Topic (Getting a window path)Next Topic (HELP ME) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder