This function causes a presentation driver to return the names, descriptions, and data types of the devices it supports.
#define INCL_DEV /* Or use INCL_PM, */
#include <os2.h>
HAB hab; /* Anchor-block handle. */
PSZ pszDriverName; /* Fully-qualified name of the file containing the presentation driver. */
PLONG pldn; /* Maximum number of device names and descriptions that can be returned. */
PSTR32 aDeviceName; /* Device-name array. */
PSTR64 aDeviceDesc; /* Device-description array. */
PLONG pldt; /* Maximum number of data types that can be returned. */
PSTR16 aDataType; /* Data type array. */
BOOL rc; /* Success indicator. */
rc = DevQueryDeviceNames(hab, pszDriverName,
pldn, aDeviceName, aDeviceDesc, pldt,
aDataType);