GetNumberOfJobs

 

Returns the number of jobs queued for the specified printer

 

GetNumberOfJobs(PrinterName As String, NrJobs As Long) As Long

 

Input values:           PrinterName            - The name of the printer to be queried

NrJobs          - A variable to receive the number of jobs for the specified printer

Return value            - 0 on success, the values of GetLastError() otherwise.