Retrieves information about display modes supported by the system.
DisplayInfo *GetFirstDisplayInfo (void)
GetFirstDisplayInfo()
returns a pointer to a DisplayInfo structure, which describes the characteristics of the display modes available to applications.
The display characteristics are represented as an array of tag arguments (to allow for future expansion). You can search the array for the tag value representing the characteristic in which you're interested; the associated argument is the value of that characteristic.
The DisplayInfo structure is a list node; you can traverse the list using the kernel list traversal calls (NEXTNODE()
, and so on). Graphics can support any number of display modes.
The tag values found in the DisplayInfo tag array are:
CreateScreenGroup()
as the argument to the CSG_TAG_DISPLAYTYPE tag to create a screen of that type. The currently defined (and ever-expanding) list of DI_TYPE values are:Returns a pointer to the first DisplayInfo structure in the list.
This call is useful to individuals wishing to have “auto-sensing” applications that work in international markets.
Do not, under any circumstances, make assumptions about the layout of the tag argument array in the DisplayInfo structure. You must perform explicit searches through the array for the information in which you are interested.
Folio call implemented in Graphics folio V22.
graphics.h, graphics.lib
QueryGraphics
(), QueryGraphicsList()