The PRQINFO data structure has the following format:
typedef struct _PRQINFO }
CHAR szName[QNLEN+1];
CHAR pad_1;
USHORT uPriority;
USHORT uStarttime;
USHORT uUntiltime;
PSZ pszSepFile;
PSZ pszPrProc;
PSZ pszDestinations;
PSZ pszParms;
PSZ pszComment;
USHORT fsStatus;
USHORT cJobs;
} PRQINFO;
where:
parms=value
Bits 0 and 1 have the symbolic constant PRJ_QS_QUEUED and the value 0. The
bit mask isolates the queue status bits as follows: ┌───────────────────────────┬───────────────┬──────────────────────────────────┐
│ SYMBOLIC CONSTANT │ VALUE │ MEANING │
├───────────────────────────┼───────────────┼──────────────────────────────────┤
│ PRQ_ACTIVE │ 0 │ Active. │
├───────────────────────────┼───────────────┼──────────────────────────────────┤
│ PRQ_PAUSE │ 1 │ Paused. │
├───────────────────────────┼───────────────┼──────────────────────────────────┤
│ PRQ_ERROR │ 2 │ Error occurred. │
├───────────────────────────┼───────────────┼──────────────────────────────────┤
│ PRQ_PENDING │ 3 │ Deletion pending. │
└───────────────────────────┴───────────────┴──────────────────────────────────┘