This function supplies information about a print queue, and, optionally, about the jobs in it.

#define INCL_SPL /* Or use INCL_PM, */
#include <os2.h>

PSZ       pszComputerName;  /*  Name of computer where queue is to be queried. */
PSZ       pszQueueName;     /*  Queue name. */
ULONG     ulLevel;          /*  Level of detail required. */
PVOID     pBuf;             /*  Buffer. */
ULONG     cbBuf;            /*  Size, in bytes, of Buffer. */
PULONG    pcbNeeded;        /*  Size in bytes of available information. */
SPLERR    rc;               /*  Return code. */

rc = SplQueryQueue(pszComputerName, pszQueueName,
       ulLevel, pBuf, cbBuf, pcbNeeded);


[Back: SplQueryQueue]
[Next: SplQueryQueue Parameter - pszComputerName]