Crate ddc_winapi

Source
Expand description

Implementation of DDC/CI traits on Windows.

§Example

extern crate ddc;

use ddc::Ddc;
use ddc_winapi::Monitor;

for mut ddc in Monitor::enumerate().unwrap() {
    let mccs_version = ddc.get_vcp_feature(0xdf).unwrap();
    println!("MCCS version: {:04x}", mccs_version.maximum());
}

Structs§

Monitor
A handle to an attached monitor that allows the use of DDC/CI operations.

Functions§

enumerate_monitors
Enumerates all HMONITORs using the EnumDisplayMonitors WinAPI call.
get_physical_monitors_from_hmonitor
WinAPI GetPhysicalMonitorsFromHMONITOR