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.

Continue reading Shutdown, Restart or Log off Windows in VB.Net

Launch applications, links and mails from vb net

This discussion uses System.Diagnostics.Process.Start method for functionality like providing a click-able web link, launching an email client (like outlook, mailto links), or launching another application from vb.net code.

Continue reading Launch applications, links and mails from vb net

Minimize all windows through keybd_event in VB Net

This code shows how can we minimize all open windows using keybd_event API.

Continue reading Minimize all windows through keybd_event in VB Net

Monitor and respond to all Windows keyboard events in VB Net

How do keyloggers work. How to read what key is pressed irrespective of focus on form or visibility of form and write code for handling it. Object Oriented wrapper for Windows Hook (with event) to address the above issues.
Continue reading Monitor and respond to all Windows keyboard events in VB Net