Using Win32 functions in Visual FoxPro Image Gallery
Monitor Configuration (Vista)
DestroyPhysicalMonitors
GetMonitorBrightness
GetMonitorCapabilities
GetMonitorContrast
GetNumberOfPhysicalMonitorsFromHMONITOR
GetPhysicalMonitorsFromHMONITOR
SetMonitorBrightness
SetMonitorContrast
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
GetMonitorCapabilities
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the configuration capabilities of a monitor. Call this function to find out which high-level monitor configuration functions are supported by the monitor.
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
Declaration:
BOOL GetMonitorCapabilities(
  HANDLE  hMonitor,
  LPDWORD  pdwMonitorCapabilities,
  LPDWORD  pdwSupportedColorTemperatures
);
FoxPro declaration:
DECLARE INTEGER GetMonitorCapabilities IN dxva2;
    INTEGER hMonitor,;
    LONG @pdwMonitorCapabilities,;
    LONG @pdwSupportedColorTemperatures
Parameters:
hMonitor
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

pdwMonitorCapabilities
[out] Receives a bitwise OR of capabilities flags. See Remarks.

pdwSupportedColorTemperatures
[out] Receives a bitwise OR of color temperature flags. See Remarks.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
STORE 0 TO nCapFlags, nColorTempFlags

= GetMonitorCapabilities(hPhysMonitor,;
    @nCapFlags, @nColorTempFlags)

? nCapFlags, nColorTempFlags
My comment:
The GetMonitorCapabilities function fails if the monitor does not support the Display Data Channel (DDC/CI).

* * *
That is what the function returns for SyncMaster T240:

The capabilities flags value is 7199 (1110000011111).

There are currently 13 capabilities flags defining which high-level configuration function is supported by this monitor including GETs and/or SETs for brightness, color temperature, contrast, display area position & size, factory defaults and more.

The color temperature flags value is 129 (10000001), which indicates support for 4000K and 11500K color temperatures.
Word Index links for the GetMonitorCapabilities :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-10 15:45:32
Modified: 2008-12-10 16:09:07
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
12 sec.Function: 'GdipGetImageDecodersSize'
24 sec.Function: 'FtpGetFileSize'
37 sec.Function: 'MoveFileTransacted'
47 sec.Function: 'ConfigurePort'
59 sec.
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
1.18 min.Function: 'FreeConsole'
1.37 min.Function: 'CreateProcessWithLogonW'
1.55 min.Function: 'GetClipboardData'
1.77 min.Function: 'GetAce'
1.97 min.Function: 'EnumPrinterDrivers'
Google
Advertise here!