Mar 2, 2003 #1 S stefk Member level 2 Joined Jul 15, 2001 Messages 42 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 293 Does anyboby know a function to turn OFF monitor , or put it in standby mode under MS Windows (98,XP..)? I need to put such code in my program written in C++ to control monitor like Power Menagment does. Thanks.
Does anyboby know a function to turn OFF monitor , or put it in standby mode under MS Windows (98,XP..)? I need to put such code in my program written in C++ to control monitor like Power Menagment does. Thanks.
Mar 9, 2003 #2 S stefk Member level 2 Joined Jul 15, 2001 Messages 42 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 293 OK , I have found the answer by myself: SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 1); Maybe it will useful for you.
OK , I have found the answer by myself: SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 1); Maybe it will useful for you.