ADSI PrintJob Object represents the information about a single print job request from a client represented by an ADSI PrintQueue Object on a network. Print job objects are not stored in the underlying directory and do not have a parent container. They are managed through the IADsCollection interface retrieved through IADsPrintQueueOperations::PrintJobs interface.
| Interfaces typically supported on ADSI PrintJob Object | Description |
|---|---|
| IUnknown | Universal COM object management and interface query methods. |
| IDispatch | Automation methods for late-bound access to an object's methods and properties. |
| IADs | Standard Active Directory object management methods. |
| IADsPrintJob | Management methods for a print job object and its properties. |
| IADsPrintJobOperations | Management methods for a print job. |
| Properties accessed through IADsPrintJob | Access | Compiler Syntax |
|---|---|---|
| Description | R/W | HRESULT get_Description ([out] BSTR *pbstrDescription);
HRESULT put_Description |
| HostPrintQueue | R/O | HRESULT get_HostPrintQueue ([out] BSTR *pbstrHostPrintQueue); |
| Notify | R/W | HRESULT get_Notify ([out] BSTR *pbstrNotify);
HRESULT put_Notify |
| NotifyPath | R/W | HRESULT get_NotifyPath ([out] BSTR *pbstrNotifyPath);
HRESULT put_NotifyPath |
| Priority | R/W | HRESULT get_Priority ([out] long *plPriority);
HRESULT put_Priority |
| Size | R/O | HRESULT get_Size ([out] long *plSize); |
| StartTime | R/W | HRESULT get_StartTime ([out] DATE *pdateStartTime);
HRESULT put_StartTime |
| TimeSubmitted | R/O | HRESULT get_TimeSubmitted ([out] DATE *pdateTimeSubmitted); |
| TotalPages | R/O | HRESULT get_TotalPages ([out] long *plTotalPages); |
| UntilTime | R/W | HRESULT get_UntilTime ([out] DATE *pdateUntilTime);
HRESULT put_UntilTime |
| User | R/O | HRESULT get_User ([out] BSTR *pbstrUser); |
| UserPath | R/O | HRESULT get_UserPath ([out] BSTR *pbstrUserPath); |
| Properties accessed through IADsPrintJobOperations | Access | Compiler Syntax |
|---|---|---|
| Status | R/O | HRESULT get_Status ([out] long *plStatus); |
| TimeElapsed | R/O | HRESULT get_TimeElapsed ([out] long *plTimeElapsed); |
| PagesPrinted | R/O | HRESULT get_PagesPrinted ([out] long *plPagesPrinted); |
| Position | R/W | HRESULT get_Position ([out] long *plPosition);
HRESULT put_Position |
| STATUS | Hex Value | |
|---|---|---|
| ADS_JOB_PAUSED | 0x00000001 | |
| ADS_JOB_ERROR | 0x00000002 | |
| ADS_JOB_DELETING | 0x00000004 | |
| ADS_JOB_PRINTING | 0x00000010 | |
| ADS_JOB_OFFLINE | 0x00000020 | |
| ADS_JOB_PAPEROUT | 0x00000040 | |
| ADS_JOB_PRINTED | 0x00000080 | |
| ADS_JOB_DELETED | 0x00000100 | |
Windows NT: Use version 4.0 and later.
IADsCollection, IADsPrintJob, IADsPrintJobOperations, IADsPrintQueue, IADsPrintQueueOperations, ADSI Collection Object, ADSI PrintQueue Object