## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Select_Display_Resolutions - Parameters

hWnd (HWND) - input The handle of the main DSPINSTL window.

resolutions (PSCREENRESOLUTION) - input A pointer to an array of display resolution structures, where:

    struct resolutions_struct

    {

     UCHAR resolution_string[40]; /* String to go in multiple selection list box. */

     USHORT selected;             /* Flag set by the service function.            */

                                  /* If 0, this resolution was not selected,      */

                                  /* if 1, this resolution was selected.          */

    };

num_resolutions (ULONG) - input The number of display resolutions in the array.

fmultiple (BOOL) - input A flag that specifies whether the user will be allowed to select multiple resolutions (or only a single resolution). True indicates multiple selections are allowed.

rc (ULONG) - returns Return codes.

This service function returns the following values:

0 User selected an entry and exited the panel by selecting the OK push button
0xFFFFFFFF User exited the panel by selecting the Cancel push button