private static PHYSICAL_MONITOR[] GetPhysicalMonitors(IntPtr displayMonitorPtr) { Dvxa2.GetNumberOfPhysicalMonitorsFromHMONITOR(displayMonitorPtr, out uint nrPhysicalMonitors); var physMonitors = new PHYSICAL_MONITOR[nrPhysicalMonitors]; Dvxa2.GetPhysicalMonitorsFromHMONITOR(displayMonitorPtr, nrPhysicalMonitors, physMonitors); return(physMonitors); }
public void SetMonitorBrightness(IntPtr monitorPtr, uint brightness) { Dvxa2.SetMonitorBrightness(monitorPtr, brightness); }
public uint GetMonitorBrightness(IntPtr monitorPtr) { Dvxa2.GetMonitorBrightness(monitorPtr, out uint minBrightness, out uint currentBrightness, out uint maxBrightness); return(currentBrightness); }