GetFirstDisplayInfo

Retrieves information about display modes supported by the system.

Synopsis

DisplayInfo *GetFirstDisplayInfo (void)

Description

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.

Tag Arguments

The tag values found in the DisplayInfo tag array are:

Return Value

Returns a pointer to the first DisplayInfo structure in the list.

Notes

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.

Implementation

Folio call implemented in Graphics folio V22.

Associated Files

graphics.h, graphics.lib

See Also

QueryGraphics(), QueryGraphicsList()