Topics

Shutdown, Restart or Log off Windows in VB.Net

To shutdown computer through VB.NET, we use the API – ExitWindowsEx. However, there is one issue with this – we cannot shut the computer down if our application does not have the appropriate privileges (permissions). Here is the solution – a class encapsulating the ExitWindowsEx and other APIs needed for getting appropriate privileges.

download

  • Share/Bookmark

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>