Here is the code to determine if the screen saver works. See details
const int SPI_GETSCREENSAVERRUNNING = 114; [DllImport( "user32.dll", CharSet = CharSet.Auto )] private static extern bool SystemParametersInfo( int uAction, int uParam, ref bool lpvParam, int flags );
source share