This function establishes a print device on the local workstation or a remote server.
#define INCL_SPL /* Or use INCL_PM, */
#include <os2.h>
PSZ pszComputerName; /* Name of computer where print device is to be added. */
ULONG ulLevel; /* Level of detail provided. */
PVOID pBuf; /* Data structure. */
ULONG cbBuf; /* Size, in bytes, of data structure. */
SPLERR rc; /* Return code. */
rc = SplCreateDevice(pszComputerName, ulLevel,
pBuf, cbBuf);