## Presentation Device Driver Reference for OS/2

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

### SplPdEnumPort - Parameters

hab (HAB) - input The handle to the anchor block.

pBuf (PVOID) - input The pointer to the buffer of data structures.

cbBuf (ULONG) - input The size of the buffer in bytes.

pulReturned (PULONG) - input The number of port entries returned.

pulTotal (PULONG) - input The total number of port entries.

pcbNeeded (PULONG) - input The size of the buffer required for all data.

rc (APIERR) - returns Return codes.

This handling routine returns the following errors:

ERROR_INSUFFICIENT_BUFFER
ERROR_MORE_DATA
NO_ERROR

The buffer, on return, consists of an array of the following data structure :

    typedef struct _PORTNAMES {

            PSZ pszPortName;

            PSZ pszPortDesc;

    } PORTNAMES;