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)
SetMonitorBrightness
..msdn    Add comment     W32 Constants      Translate this page
Sets a monitor"s brightness value.
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
Declaration:
BOOL SetMonitorBrightness(
  HANDLE  hMonitor,
  DWORD  dwNewBrightness
);
FoxPro declaration:
DECLARE INTEGER SetMonitorBrightness IN dxva2;
    INTEGER hMonitor,;
    LONG dwNewBrightness
Parameters:
hMonitor
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

dwNewBrightness
[in] Brightness value. To get the monitor"s minimum and maximum brightness values, call GetMonitorBrightness.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
= SetMonitorBrightness(hPhysMonitor, 100)
My comment:
If this function is supported, the GetMonitorCapabilities function returns the MC_CAPS_BRIGHTNESS flag.

See also: GetMonitorBrightness
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-10 16:15:00
Modified: 2008-12-10 16:17:38
Visited in last 7 days: 31
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.221.136.62)
11 sec.Function: 'DragAcceptFiles'
23 sec.Function: 'midiOutGetNumDevs'
34 sec.Function: 'JetCreateDatabase'
47 sec.Function: 'InternetGetConnectedStateEx'
Function group: 'Internet Functions (WinInet)'
58 sec.Function: 'GdipRotateWorldTransform'
1.17 min.Function: 'FtpCreateDirectory'
1.38 min.Function: 'WinHttpReadData'
1.6 min.Function: 'WinHelp'
1.82 min.Function: 'GdipDrawImageI'
2.02 min.
Function group: 'Cryptography Reference'
Google
Advertise here!