Hey guys and gals. Does anyone know if there is a way to know how the computer shut down in C#? So while my software is running, as of right now it can tell me that the computer shutdown after I restart it. However, I would like to know exactly how it shutdown, whether it was through the start menu, through task manager, through a shutdown button in my software, etc. Does anyone know how I can implement this?