Retrieves print job status information from a status file.
#include <IN/stfile.h>
int piogetstatus(StatusFileDescriptor, VersionMagicNumber, StatusInformation) int StatusFileDescriptor, VersionMagicNumber; void *StatusInformation;
The information returned by the piogetstatus subroutine includes the queue name, queue device name, job number, job status, percent done, and number of pages printed. The piogetstatus subroutine reads the specified status file and places the information in the structure specified by the StatusInformation parameter. The format of the status structure is determined by the version magic number specified by the VersionMagicNumber parameter. Each time there is a change in the status file structure for a new release, a unique number is assigned to the release's version magic number. This supports structure formats of previous releases.
1 | Indicates that the pioputstatus subroutine was successful. |
-1 | Indicates that an error occurred. |