internal DisplayAdapter(DisplayDevice displayDevice)
     : base(ref displayDevice)
 {
     monitorsByDeviceName = new Dictionary <string, DisplayMonitor>();
     currentMode          = GetCurrentDisplaySettingsEx(base.DeviceName, EnumDisplaySettingsExOptions.None);
 }
 internal static extern bool EnumDisplayDevicesW(
     [In, MarshalAs(UnmanagedType.LPWStr)] string deviceName,
     [In] int deviceIndex,
     [In, Out] ref DisplayDevice displayDevice,
     [In] EnumDisplayDevicesOptions options
     );
 /// <summary>Base constructor.</summary>
 /// <param name="displayDevice">A valid <see cref="DisplayDevice"/> structure representing the display adapter or monitor.</param>
 internal DisplayDeviceBase(ref DisplayDevice displayDevice)
 {
     device = displayDevice;
 }