Can any one help me, I need to know if there is a way to check if windows (all versions) has just been started, I am working on a personal project and need a way to detect if windows has just been restarted or started.

------------------