Description:
SplPdQueryPort returns textual data that describes the port configuration in a way that can be printed by the Workplace Shell.
#include <os2.h> HAB hab; /* The handle to the anchor block. */ PSZ pszPortName; /* The name of the port to be configured. */ PVOID pBuf; /* The pointer to the buffer of data structures. */ ULONG cbBuf; /* The size of the buffer in bytes. */ PULONG cItems; /* The count of the number of strings of description returned. */ APIERR rc; /* Return codes. */ rc = SplPdQueryPort(hab, pszPortName, pBuf, cbBuf, cItems);