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
Retrieves the physical monitors associated with an HMONITOR monitor handle.
Code examples:
How to adjust monitor brightness (Vista, monitor with DDC support)
BOOL GetPhysicalMonitorsFromHMONITOR(
  HMONITOR  hMonitor,
  DWORD  dwPhysicalMonitorArraySize,
  LPPHYSICAL_MONITOR  pPhysicalMonitorArray
FoxPro declaration:
DECLARE INTEGER GetPhysicalMonitorsFromHMONITOR IN dxva2;
    INTEGER hMonitor,;
    LONG dwPhysicalMonitorArraySize,;
    STRING @pPhysicalMonitorArray
[in] A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow.

[in] Number of elements in pPhysicalMonitorArray. To get the required size of the array, call GetNumberOfPhysicalMonitorsFromHMONITOR.

[out] Pointer to an array of PHYSICAL_MONITOR structures. The caller must allocate the array.
Return value:
If the function succeeds, the return value is nonzero.

= GetPhysicalMonitorsFromHMONITOR(hMonitor,;
    nPhysMonitorCount, @cPhysMonitorArray)

My comment:
When you are done using the monitor handles, close them by passing the pPhysicalMonitorArray array to the DestroyPhysicalMonitors function.
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2008-12-10 15:27:04
Modified: 2008-12-10 15:30:49
Visited in last 7 days: 7
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2016 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.5.46), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
1.38 min.Function: 'midiOutGetNumDevs'
Function group: 'Windows Multimedia'
1.99 hrs.Function: 'Escape'
Function group: 'Printing and Print Spooler'
2.01 hrs.Function: 'CeRapiInit'
Function group: 'Remote Application Programming (RAPI)'
2.05 hrs.Example: 'A client for testing non-blocking Winsock server'
1 day(s)Example: 'How to change display settings: screen resolution, screen refresh rate'
Language: 'C#'
 Function: 'RegCreateKeyEx'
 Example: 'How to delete a service object'
 Function: 'CryptGenKey'
Function group: 'Cryptography Reference'
3 day(s)Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
Language: 'Visual FoxPro'
Advertise here!