I am trying to capture windows 10 restart/shutdown events using C# winforms. I am writing an application that requires the complete log of idle time, lock/unlock and windows restart/shutdown/logoff timestamps.
Can you help me in guiding with related links or posts, Thank you