Simulation support:

This function is optional for hardcopy drivers.

Description:

GreEscape DEVESC_GETJOBID (8160L) is called by an application to get the spooler job ID, print queue name, and print server name for the job the application is spooling.

This escape is not metafiled and is allowed only when printing OD_QUEUED.

#define INCL_GRE_DEVICE
#include <os2.h>

LONG     lInCount;    /*  Not used; must be set to 0 (zero). */
PBYTE    pbInData;    /*  Not used; must be set to NULL. */
PLONG    plOutCount;  /*  The number of bytes pointed to or used by pbOutData. */
PLONG    pbOutData;   /*  Buffer to receive QMJOBINFO data structure. */
LONG     rc;          /*  Return Code. */

rc = GreEscape(lInCount, pbInData, plOutCount,
       pbOutData);


[Back: GreEscape DEVESC_GETJOBID]
[Next: GreEscape DEVESC_GETJOBID Parameter - lInCount]