I wrote this following the Microsoft documentation.
But when I run this code I get a COM error: ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA (0xC0262582) - "An error occurred while transmitting data to the device on the I2C bus."
I have tried searching for solutions to this error but have not been able to find anything related to my situation, it is because of this I ask this question.
I am running Windows 7 32-bit
My monitor is a CRT monitor (HP 7650 to be exact)
The Value of "hPhysicalMonitor" from the "pPhysicalMonitors" array is null (0x00000000) but the value stored in "szPhysicalMonitorDescription" from the "pPhysicalMonitors" array is the correct name of my monitor.
p.s. I have also posted this same question to StackOverflow.