## Presentation Device Driver Reference for OS/2

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

### OS2_PM_DRV_DEVICENAMES - Parameters

pszDriverName (PSZ) - input A pointer to a string containing the name of the device driver, such as LaserJet.

pcNames (PLONG) - input A pointer to count of fields, cNames, in DeviceName and DeviceDesc arrays.

paDeviceName (PSTR32) - input A pointer to DeviceName array, CHAR cNames[32 ]. Device names are NULL-terminated strings such as 'HP LaserJet II'.

paDeviceDesc (PSTR64) - input A pointer to DeviceDesc array, CHAR cNames[64 ]. Device descriptions are NULL-terminated strings such as 'HP LaserJet II' .

pcDataTypes (PLONG) - input A pointer to count of fields, cDataTypes in DataType array.

paDataType (PSZ) - input A pointer to DataType array, CHAR cDataTypes[16].

lReserved1 (ULONG) - input Reserved.

lReserved2 (ULONG) - input Reserved.

rc (LONG) - returns Return codes.

The handling routine in the presentation driver returns a LONG integer. Valid values are:

-1 Successful
0 Error

Note: The system expects the successful and error return codes from OS2_PM _DRV_DEVICENAMES to be the opposite of those from OS2_PM_DRV_DEVMODE and the Enable subfunctions.