The right way to do this on Windows would be to use SetThreadExecutionState(ES_DISPLAY_REQUIRED) (http://msdn.microsoft.com/en-us/library/aa373208%28VS.85%29.aspx). No need to touch the registry or send fake events regularly.
The right way to do this on Windows would be to use SetThreadExecut ionState( ES_DISPLAY_ REQUIRED) (http:// msdn.microsoft. com/en- us/library/ aa373208% 28VS.85% 29.aspx). No need to touch the registry or send fake events regularly.