win32print.EnumJobs

tuple = EnumJobs(hPrinter, FirstJob , NoJobs , Level )

Enumerates print jobs on specified printer.

Parameters

hPrinter : PyPrinterHANDLE

Handle of printer.

FirstJob : int

location of first job in print queue to enumerate.

NoJobs : int

Number of jobs to enumerate.

Level=1 : int

Level of information to return (JOB_INFO_1, JOB_INFO_2, JOB_INFO_3 supported).

Return Value

Returns a sequence of dictionaries representing JOB_INFO_* structures, depending on level