Author image

Windows Shutdown Restart Logoff


Difficulty:
1/5


Even wanted to have a script to shutdown/restart/sign-out your windows PC with the press of a button?

Well, now you can! Simple as that. Nothing more nothing less. The code is slim & thoroughly commented and other than some API functions which you can look up online on the Microsoft documentation (MSDN) it's pretty straightforward.

I used Windows 8.1 x86_64, Visual Studio 2017 to build the project.

Github

Github repository link.

Acknowledgements

WIN API function lookup.


0 likes