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)
GetNumberOfPhysicalMonitorsFromHMONITOR
..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)
Declaration:
BOOL GetNumberOfPhysicalMonitorsFromHMONITOR(
  HMONITOR  hMonitor,
  LPDWORD  pdwNumberOfPhysicalMonitors
);
FoxPro declaration:
DECLARE INTEGER GetNumberOfPhysicalMonitorsFromHMONITOR IN dxva2;
    INTEGER hMonitor,;
    LONG @pdwNumberOfPhysicalMonitors
Parameters:
hMonitor
[in] A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow.

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

nPhysMonitorCount=0

= 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  
FreeTranslation.com 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: 34
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.91.38.173)
15 sec.Function: 'SystemTimeToFileTime'
35 sec.Function: 'GdipScaleTextureTransform'
49 sec.Function: 'HashData'
1.05 min.Function: 'GdipLoadImageFromFile'
1.32 min.Function: 'GdipDrawRectangle'
1.63 min.Function: 'NetApiBufferFree'
1.88 min.Function: 'GetSystemMetrics'
2.17 min.Function: 'ImageList_Remove'
Google
Advertise here!