I am using Windows 8.1, Visual Studio 2013 and I have a C++ project which runs over 15 minutes. But the problem is the windows gets into sleep while my is still debugging.
I know this is occured because the sleep wait time is exceeded while running the program (debugging), and I can easily stop this by either increasing sleep wait time or set the settings to "never" sleep in the Windows Control Pannel Power Settings.
But I want a programatical or Visual Studio based solution for this. I want my computer not to sleep in the midst of execution (debugging) of a program.