Beispiel #1
0
        public static bool GetScreenSaverRunning()
        {
            bool lpvParam = false;

            ScreenSaver.SystemParametersInfo(114, 0, ref lpvParam, 0);
            return(lpvParam);
        }
Beispiel #2
0
        public static int GetScreenSaverTimeout()
        {
            int lpvParam = 0;

            ScreenSaver.SystemParametersInfo(14, 0, ref lpvParam, 0);
            return(lpvParam);
        }
Beispiel #3
0
        public static bool GetScreenSaverActive()
        {
            bool lpvParam = false;

            ScreenSaver.SystemParametersInfo(16, 0, ref lpvParam, 0);
            return(lpvParam);
        }
Beispiel #4
0
        public static void SetScreenSaverTimeout(int Value)
        {
            int lpvParam = 0;

            ScreenSaver.SystemParametersInfo(15, Value, ref lpvParam, 2);
        }
Beispiel #5
0
        public static void SetScreenSaverActive(int Active)
        {
            int lpvParam = 0;

            ScreenSaver.SystemParametersInfo(17, Active, ref lpvParam, 2);
        }