How to prevent windows from going to sleep when my c++ application is running?
<p>I develop an application in c++ with Qt and visual studio 2015.</p>

<p>I want to know how to prevent the application form going to sleep when my application is running. My application should be always running in background and responding to the user commanding it by voice.</p>

<p>Is there any to prevent windows from going to sleep when my application is running?</p>