Description:
SplPdSet is an API exported by port drivers. It is called by PrtSet to set printer device information.
#define INCL_SPL #define INCL_SPLBIDI #include <os2.h> PSZ pszPortName; /* Port name. */ ULONG ulType; /* Type of query and options. */ ULONG ulCommand; /* Generic command code. */ PVOID pInData; /* May contain information required by SplPdSet. */ ULONG cbInData; /* Length of information in pInData, in bytes. */ ULONG rc; /* Return codes. */ rc = SplPdSet(pszPortName, ulType, ulCommand, pInData, cbInData);