@The High Roller:
First tested the log-off, the abort is not working properly. What I do?
The count down is 6o then I initiate the log off, when I press the abort, the count down still decrementing, when it reaches zero, it forcefully log off. I clicked the logon, but there's lot of msgboxs telling the log off is in session still, it continues to log off. Windows 7 here.
If you know how to do it in command line and initiate shutdown or using with sysinternal utilities then you can integrate them into vb.net programming. I beat you can do like this one too. I found out that it uses some of shell commands.
Edit: I have deobfuscate this program, and codes are viewable in reflector now but not hard to understand. The deobfuscated file is runable anyway.
Download:
For the meantime, try to experiment with command prompt.
For hibernate on/off can be also run in command prompt with elevated privileges.
PsShudown Utility by SysInternals
How to Quickly Lock Your Computer and Use Other Windows Logo Shortcut Keys
CodeProject: Timer Computer Shutdown (C#)
How to use command prompt in vb.net
How to Log off, Restart and Shutdown your System Using VB.Net
First tested the log-off, the abort is not working properly. What I do?
The count down is 6o then I initiate the log off, when I press the abort, the count down still decrementing, when it reaches zero, it forcefully log off. I clicked the logon, but there's lot of msgboxs telling the log off is in session still, it continues to log off. Windows 7 here.
(04-02-2011, 01:29 AM)h4yr0 Wrote: Does this release contains source code, or only .bin ?
If you know how to do it in command line and initiate shutdown or using with sysinternal utilities then you can integrate them into vb.net programming. I beat you can do like this one too. I found out that it uses some of shell commands.
Edit: I have deobfuscate this program, and codes are viewable in reflector now but not hard to understand. The deobfuscated file is runable anyway.
Download:
Code:
http://www.fileserve.com/file/PDyWM6c
For the meantime, try to experiment with command prompt.
For hibernate on/off can be also run in command prompt with elevated privileges.
Code:
http://support.microsoft.com/kb/920730
PsShudown Utility by SysInternals
Code:
http://technet.microsoft.com/en-us/sysinternals/bb897541
How to Quickly Lock Your Computer and Use Other Windows Logo Shortcut Keys
Code:
http://support.microsoft.com/kb/294317
CodeProject: Timer Computer Shutdown (C#)
Code:
http://www.codeproject.com/KB/cs/timercomputershutdown.aspx
How to use command prompt in vb.net
Code:
http://www.codeproject.com/KB/vb/Shutdown_Restart_VBNet.aspx
How to Log off, Restart and Shutdown your System Using VB.Net
Code:
http://www.devasp.net/net/articles/display/354.html