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.
Continue reading Shutdown, Restart or Log off Windows in VB.Net


Comments