title: Prevent Windows workstation (desktop) from locking while running a WPF program
body: <p><strong>Issue:</strong><br>
  I have a WPF <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c7c966-4b77-4f41-849f-a4a4c0974eb3/">fullscreen</a> application, which acts as a dashboard. The computer is in domain and domain policies enforce the computer to be locked in 10 minutes after the last user activity. I want to prevent the workstation (or desktop) from locking automatically.<br>
  An example of such behavior: Windows Media Player, which prevents this while a movie is running.</p>
  
  <p><strong>Known solutions (kinda workarounds):</strong>  </p>
  
  <ol>
  <li>It is possible to <a href="http://www.gettingclever.com/2008/06/prevent-your-desktop-from-locking.html">send a Win32 Mouse Move event</a> every fixed interval of time (for example, every minute)</li>
  <li>It is possible to send a key to the program (for example "Left Shift" key up) every fixed interval of time (for example, every minute)</li>
  </ol>
  
  <p><strong>QUESTION:</strong><br>
  <strong><em>How can I prevent windows workstation from locking without using these workarounds?</em></strong></p>
  
  <p><strong>Disclaimer:</strong><br>
  I was pretty sure, there should be a similar question answered somewhere on StackOverflow, but i didn't find any. I would appreciate, if you could point me into the right direction.</p>