Come back to home page

Shutdown, Restart or Log off Windows (System, VB.NET)Download

To shutdown computer through VB.NET, we use an API - ExitWindowsEx. However, there is one problem... We cannot shut the computer down if our application does not have the privilege (permission)...

For your convenience, I have made a simple class which encapsulates the ExitWindowsEx API and other APIs needed for getting privilege...

Please check the code and if you have any doubts, feel free to contact me. I will be happy to assist you...

and yes, don't forget to send your feedback at rahul@coder000.com

Happy Coding!!