GetStatusFromJobInfo

 

Retrieves the status of the job from the JobInfo structure

 

GetStatusFromJobInfo(JobInfo As Long) As Long

 

Input values:           JobInfo                      - The JobInfo value returned by the GetJobInfo() method

Return value                                                - The status of the print job. It can be a combination of the following values:

Status code

Hex Value

JOB_STATUS_PAUSED

0x00000001

JOB_STATUS_ERROR               

0x00000002

JOB_STATUS_DELETING            

0x00000004

JOB_STATUS_SPOOLING            

0x00000008

JOB_STATUS_PRINTING            

0x00000010

JOB_STATUS_OFFLINE             

0x00000020

JOB_STATUS_PAPEROUT            

0x00000040

JOB_STATUS_PRINTED             

0x00000080

JOB_STATUS_DELETED             

0x00000100

JOB_STATUS_BLOCKED_DEVQ        

0x00000200

JOB_STATUS_USER_INTERVENTION  

0x00000400

JOB_STATUS_RESTART             

0x00000800

 

Notes:

The value returned by GetStatusFromJobInfo() can be a combination of multiple values.

The Black Ice functions use the Microsoft JOB_INFO_1 structure internally.

For an up to date list of the possible return values please see the following Microsoft page:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd145019(v=vs.85).aspx

0x00002010 is a combination of the JOB_STATUS_RETAINED (0x00002000) and JOB_STATUS_PRINTING (0x00000010) flags.