This function modifies the configuration of a print device.
#define INCL_SPL /* Or use INCL_PM, */
#include <os2.h>
PSZ       pszComputerName;     /*  Name of computer where print device is to be modified. */
PSZ       pszPrintDeviceName;  /*  Name of Print Device. */
ULONG     ulLevel;             /*  Level of detail required. */
PVOID     pBuf;                /*  Buffer. */
ULONG     cbBuf;               /*  Size, in bytes, of Buffer. */
ULONG     ulParmNum;           /*  Parameter number. */
SPLERR    rc;                  /*  Return code. */
rc = SplSetDevice(pszComputerName, pszPrintDeviceName,
       ulLevel, pBuf, cbBuf, ulParmNum);