Small milestones that I reached while trying to learn Windows API
Every SID / token has certain privileges associated with it which aren't enabled by default. This program enables seShutdownPrivilege and uses windows API to poweroff the PC without warnings.
Program returns an output like the task manager showing all processes with pid its count and the process owner info along with SID
This program is pretty simple once you run it, it checks if the current program was ran as an administrator if not then the program relaunches its self as an administrator with a UAC prompt to allow to run as Admin.