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)
GetMonitorBrightness
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the minimum, maximum, and current brightness settings for a monitor.
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
Declaration:
BOOL GetMonitorBrightness(
  HANDLE  hMonitor,
  LPDWORD  pdwMinimumBrightness,
  LPDWORD  pdwCurrentBrightness,
  LPDWORD  pdwMaximumBrightness
);
FoxPro declaration:
DECLARE INTEGER GetMonitorBrightness IN dxva2;
    INTEGER hMonitor,;
    LONG @pdwMinimumBrightness,;
    LONG @pdwCurrentBrightness,;
    LONG @pdwMaximumBrightness
Parameters:
hMonitor
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

pdwMinimumBrightness
[out] Receives the monitor"s minimum brightness.

pdwCurrentBrightness
[out] Receives the monitor"s current brightness.

pdwMaximumBrightness
[out] Receives the monitor"s maximum brightness.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
STORE 0 TO minBrightness, curBrightness, maxBrightness

? GetMonitorBrightness(hPhysMonitor,;
    @minBrightness, @curBrightness, @maxBrightness)

? minBrightness, curBrightness, maxBrightness
My comment:
If this function is supported, the GetMonitorCapabilities function returns the MC_CAPS_BRIGHTNESS flag.

See also: SetMonitorBrightness
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-10 16:11:02
Modified: 2008-12-10 16:14:05
Visited in last 7 days: 17
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.124.143)
2 sec.Updates
3 sec.Example: 'How to assemble an array of strings and pass it to external function'
5 sec.Function: 'CeGetSystemInfo'
Function group: 'Remote Application Programming (RAPI)'
7 sec.Function: 'DrawMenuBar'
Function group: 'Menu'
9 sec.Function: 'CreateProcessAsUser'
Function group: 'Process and Thread'
10 sec.Function: 'NetGroupEnum'
Function group: 'Network Management'
12 sec.Function: 'mixerSetControlDetails'
Function group: 'Windows Multimedia'
13 sec.Function: 'AVIFileWriteData'
Function group: 'Windows Multimedia'
15 sec.Example: 'Extensible Storage Engine class library'
18 sec.Examples
Google
Advertise here!