In a c++ program run on Win7, is there a way to fake a mouse movement or something like that, just to keep the screen saver from starting and the system from going to sleep? I’m looking for the minimal approach and I prefer not to use .NET.
Thanks,
-nuun
In a c++ program run on Win7, is there a way to fake a
Share
Don’t mess with the screensaver settings, use SetThreadExecutionState. This is the API for informing windows on the fact that your application is active:
, and