title: How to programatically prevent Windows from hard disk drive spin down?
body: <p>My program performs a task on the hard disk free space.
  The task is quite long, <strong>it takes 1-2 hours</strong>.</p>
  
  <p>The problem is that on laptop the hard disk may be turned off after few minutes when the user is inactive.</p>
  
  <p><strong>How do I programmatically prevent Windows from hard disk spin down (power off) ?</strong></p>