Monitor RestoreMonitorFactoryColorDefaults Function
Monitor Configuration API |
Previous | Next |
RestoreMonitorFactoryColorDefaults Function
Restores a monitor's color settings to their factory defaults.
Syntax
BOOL RestoreMonitorFactoryColorDefaults( HANDLE hMonitor );
Parameters
hMonitor
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.
Return Value
If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.
Remarks
This function potentially changes the current value of the monitor's brightness, contrast, color temperature, drive, and gain. The current value of each setting is changed to its factory default. The default settings depend on the manufacturer. This function can also change the range of supported values for each of these settings. The function does not enable any monitor settings that were disabled.
If this function is supported, the GetMonitorCapabilities function returns the MC_CAPS_RESTORE_FACTORY_COLOR_DEFAULTS flag. This function takes about 5 seconds to return.
This function might reset monitor settings that are not accessible through the high-level monitor configuration functions. Whether this occurs depends on the specific model of monitor.
The following settings are not affected by this function:
- Display area size
- Display area position
- Capabilities flags
Requirements
Client: Requires Windows Vista.
Header: Include HighLevelMonitorConfigurationAPI.h.
Library: Use dxva2.lib.
See Also
Previous | Next |