## Display Device Driver Reference for OS/2

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

### GetAllMonitors - Parameters

*pMonitors (MONITORINFO) - output Pointer to the array of MONITORINFO data structures.

This parameter points to the array of MONITORINFO data structures that receive all the monitor definitions in the MONITOR.DIF file.

pulBufferSize (PULONG) - output Specifies the size of the pMonitors buffer, in bytes.

If the buffer size is too small to contain all monitor definitions, the ERROR_NOT_ENOUGH_MEMORY error is returned. The variable is then given the size of the buffer required in order to contain all monitor definitions.

rc (ULONG) - returns Return codes.

0 Function is successful
Nonzero Returns one of the following errors:

ERROR_INVALID_PARAMETER
ERROR_NO_MONITOR_SUPPORT
ERROR_NOT_ENOUGH_MEMORY