How to get the power state of a monitor?(working, low power or soft off)
Maybe this API function can do, but I don't know how to get the handle of the monitor.
Could you help me?
BOOL GetDevicePowerState( HANDLE hDevice, BOOL* pfOn);
[in] Handle to an object on the device, such as a file or socket, or a handle to the device itself.
[out] Pointer to the variable that receives the power state. This value is TRUE if the device is in the working state. Otherwise, it is FALSE.
Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.