This function creates a new print queue on the local workstation or on a remote server. A remote server setup requires the LAN Requester and Server software.
#define INCL_SPL /* Or use INCL_PM, */ #include <os2.h> PSZ pszComputerName; /* Name of computer where queue is to be created. */ ULONG ulLevel; /* Level of detail provided. */ PVOID pbBuf; /* Data structure. */ ULONG cbBuf; /* Size, in bytes, of data structure. */ SPLERR rc; /* Return code. */ rc = SplCreateQueue(pszComputerName, ulLevel, pbBuf, cbBuf);