SplQueryJob - Syntax

This function retrieves information about a print job.

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

PSZ       pszComputerName;  /*  Name of computer where print job is to be queried. */
PSZ       pszQueueName;     /*  Queue Name. */
ULONG     ulJob;            /*  Job identification number. */
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 = SplQueryJob(pszComputerName, pszQueueName,
       ulJob, ulLevel, pBuf, cbBuf, pcbNeeded);


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