Search found 3 matches

by YaSoC
Mon Sep 17, 2007 9:45 am
Forum: Tricks 'n' Tips
Topic: Shutting down Windows
Replies: 13
Views: 12471

Shutdown poweroff shut down power off

Shut Down Computer
Power Off Computer



Structure NEW_LUID_AND_ATTRIBUTES
pLuid.LUID
Attributes.l
EndStructure
Structure NEW_TOKEN_PRIVILEGES
PrivilegeCount.l
Privileges.NEW_LUID_AND_ATTRIBUTES[#ANYSIZE_ARRAY]
EndStructure ...
by YaSoC
Mon Sep 17, 2007 9:33 am
Forum: Tricks 'n' Tips
Topic: Shutting down Windows
Replies: 13
Views: 12471

2bingo :
Thank you. But ur code reboots computer.

I'm workin' under WinXP. But the program i am writing should be used under 2003 also.

---

I've also tried to rewrite the second example, given by Psychophanta.
it can Shut the computer down. But i am working on exclaimation of all the other ...
by YaSoC
Mon Sep 17, 2007 8:49 am
Forum: Tricks 'n' Tips
Topic: Shutting down Windows
Replies: 13
Views: 12471

First code doesnt work.
Maybe cause of version.


Second and third codes just only LOGIIN' OFF current user.
Is there some way to Shut Down the computer (power off) ?