title: .NET Framework : Detect when a process prevent the screen saver
body: <p>In my .net Framework 4.6.1 application, i need to detect if a process prevent the screen saver.</p>
  <p>I found the <a href="https://docs.microsoft.com/fr-fr/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate?redirectedfrom=MSDN" rel="nofollow noreferrer">SetThreadExecutionState</a> method. With this method, we can tell to Windows that our process prevent the screen saver. But in my case, i want to get if any process prevent the screen saver.</p>
  <p>Is this possible ?</p>