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

[out] Receives the number of physical monitors associated with the monitor handle.
Return value:
If the function succeeds, the return value is nonzero.
hMonitor = MonitorFromWindow(_vfp.hWnd,;


= GetNumberOfPhysicalMonitorsFromHMONITOR(;
    hMonitor, @nPhysMonitorCount)
My comment:
Call this function before calling GetPhysicalMonitorsFromHMONITOR.

This is a really long name for API function. The whole group of the Monitor Configuration functions sports very long, supposedly extra meaningful, function names.

This one I like especially -- GetNumberOfPhysicalMonitorsFromIDirect3DDevice9 -- though I might need to add changes to the PHP code on my site to accomodate names like this.

This must be a new Microsoft trend in naming functions. Otherwise we would have already enjoyed API functions like DownloadAFileFromFTPServerConnected instead of boringly undescriptive FtpGetFile. I must be raving.
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2008-12-10 15:17:44
Modified: 2008-12-10 15:38:04
Visited in last 7 days: 26
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 (
21 sec.Function: 'sendto'
Function group: 'Windows Sockets 2 (Winsock)'
38 sec.Function: 'CeDeleteDatabase'
Function group: 'Remote Application Programming (RAPI)'
58 sec.Function: 'SCardDisconnect'
1.27 min.Function: 'mmioFlush'
Function group: 'Windows Multimedia'
1.6 min.Gallery
1.88 min.Function: 'CoTaskMemFree'
Function group: 'COM'
2.18 min.Function: 'WinHttpOpen'
2.43 min.Function: 'AVIFileInit'
Function group: 'Windows Multimedia'
2.75 min.Function: 'AVIFileOpen'
Function group: 'Windows Multimedia'
3.35 min.Function: 'FindResource'
Advertise here!