How to know shutdown using c#?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
You can use the InitiateSystemShutdown[^] function. You'll need to use pinvoke to call it from C#. pinvoke.net[^] will help you find the right signature for the declaration. (Alternatively, you can use WMI if you prefer. Just google it)
Simon