internal MonitorCapabilities(DCHandle dcHandle) { _dcHandle = dcHandle; var tech = (DisplayTechnology)DeviceContextApi.GetDeviceCaps(_dcHandle, DeviceCapability.Technology); if (tech != DisplayTechnology.RasterDisplay) { throw new NotSupportedException(); } }
internal static extern bool SetDeviceGammaRamp(DCHandle dcHandle, ref GammaRamp ramp);
internal static extern bool ReleaseDC([In] IntPtr windowHandle, [In] DCHandle dcHandle);
internal static extern int GetDeviceCaps(DCHandle dcHandle, DeviceCapability index);
internal static extern bool DeleteDC(DCHandle dcHandle);