Returning Display Modes: DrvGetModes

The display driver must also support DrvGetModes. This function gives GDI a pointer to an array of DEVMODEW structures. The structures define the attributes of the display for the various modes, including information about dimension (in both pixels and millimeters), number of planes, bits per plane, color information, and so on.