05-13-2011, 05:27 PM
(05-13-2011, 03:37 AM)euverve Wrote: @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 reachers zero, it forcefully aborted. 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:
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 SysInternalsCode: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.netCode:http://www.codeproject.com/KB/vb/Shutdown_Restart_VBNet.aspx
How to Log off, Restart and Shutdown your System Using VB.NetCode:http://www.devasp.net/net/articles/display/354.html
HAHAHAHA... You could go through all that damn pain or ask me for the source code politely... Thats not such a great way of putting it.