Using Win32 functions in Visual FoxPro Image Gallery
Monitor Configuration (Vista)
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
..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)
BOOL SetMonitorBrightness(
  HANDLE  hMonitor,
  DWORD  dwNewBrightness
FoxPro declaration:
DECLARE INTEGER SetMonitorBrightness IN dxva2;
    INTEGER hMonitor,;
    LONG dwNewBrightness
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

[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.
= 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 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: 25
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
20 sec.Example: 'Playing WAV sounds simultaneously'
47 sec.Function: 'CeRapiInvoke'
Function group: 'Remote Application Programming (RAPI)'
1.28 min.Example: 'Displaying the associated icons and descriptions for files and folders'
1.8 min.Examples
2.4 min.Function: 'WNetGetProviderName'
Function group: 'Windows Networking'
3 min.Solutions
3.58 min.Function: 'GetCharABCWidths'
Function group: 'Font and Text'
4.18 min.Function: 'CeGlobalMemoryStatus'
Function group: 'Remote Application Programming (RAPI)'
4.82 min.
8.02 min.Function: 'CreateEvent'
Function group: 'Synchronization'
Advertise here!