Using Win32 functions in Visual FoxPro Image Gallery
Device Context
Code examples:
How to change display settings: screen resolution, screen refresh rate
How to detect if additional monitor is connected and active
..msdn    Add comment     W32 Constants      Translate this page
The EnumDisplaySettings function retrieves information about one of the graphics modes for a display device. To retrieve information for all the graphics modes of a display device, make a series of calls to this function.
Code examples:
How to change display settings: screen resolution, screen refresh rate
How to detect if additional monitor is connected and active
BOOL EnumDisplaySettings(
  LPCTSTR lpszDeviceName,  // display device
  DWORD iModeNum,          // graphics mode
  LPDEVMODE lpDevMode      // graphics mode settings
FoxPro declaration:
DECLARE INTEGER EnumDisplaySettings IN user32;
    STRING    lpszDeviceName,;
    INTEGER   iModeNum,;
    STRING  @ lpDevMode
[in] Pointer to a null-terminated string that specifies the display device about whose graphics mode the function will obtain information.

[in] Specifies the type of information to retrieve.

[out] Pointer to a DEVMODE structure into which the function stores information about the specified graphics mode.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
MSDN: The function fails if iModeNum is greater than the index of the display device"s last graphics mode. As noted in the description of the iModeNum parameter, you can use this behavior to enumerate all of a display device"s graphics modes.
Word Index links for the EnumDisplaySettings :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2003-01-21 11:21:58
Modified: 2003-01-21 11:24:16
Visited in last 7 days: 39
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 (
19 sec.
Function group: 'Registry'
42 sec.Function: 'CreateMenu'
1.03 min.Function: 'GetCapture'
1.35 min.Function: 'IsWellKnownSid'
1.68 min.Function: 'PathCompactPathEx'
2 min.Function: 'GdipCreatePen1'
2.32 min.Function: 'RemoveDirectoryTransacted'
2.65 min.
Function group: 'Window Procedure'
3.02 min.Function: 'SetForegroundWindow'
3.32 min.Function: 'GetWindowPlacement'
Advertise here!