11.2.1 IADsPrintJob

The IADsPrintJob interface is used to get and set the properties of the Print Job object. The interface definition is as follows:

[ object, uuid(IID_IADsPrintJob), oleautomation, dual ]

interface IADsPrintJob: IADs

{

// Read-only properties.

[propget]

HRESULT HostPrintQueue ([out, retval]BSTR *pbstrHostPrintQueue);

[propget]

HRESULT User ([out, retval]BSTR *pbstrUser);

[propget]

HRESULT UserPath ([out, retval]BSTR *pbstrUserPath);

[propget]

HRESULT TimeSubmitted ([out, retval]DATE *pdateTimeSubmitted);

[propget]

HRESULT TotalPages ([out, retval]long *plTotalPages);

[propget]

HRESULT Size ([out, retval]long *plSize);

// Read/write properties

[propget]

HRESULT Description ([out, retval]BSTR *pbstrDescription);

[propput]

HRESULT Description ([in]BSTR bstrDescription);

[propget]

HRESULT Priority ([out, retval]long *plPriority);

[propput]

HRESULT Priority ([in]long lPriority);

[propget]

HRESULT StartTime ([out, retval]DATE *plStartTime);

[propput]

HRESULT StartTime ([in]DATE lStartTime);

[propget]

HRESULT UntilTime ([out, retval]DATE *pdateUntilTime);

[propput]

HRESULT UntilTime ([in]DATE dateUntilTime);

[propget]

HRESULT Notify ([out, retval]BSTR *pbstrNotify);

[propput]

HRESULT Notify ([in]BSTR bstrNotify);

[propget]

HRESULT NotifyPath ([out, retval]BSTR *pbstrNotifyPath);

[propput]

HRESULT NotifyPath ([in]BSTR bstrNotifyPath);

};

Method

Syntax

Description

HostPrintQueue

ADsPath

Gets the ADsPath string that references the Print Queue which is processing the print job.

User

String

Gets the name of user that submitted the print job.

UserPath

ADsPath

Gets the ADsPath of the user object for the user that submitted this print job

TimeSubmitted

Time

Gets the time that the job was submitted to the queue.

TotalPages

Integer

Gets the total number of pages in the print job.

Size

Integer

Gets the size of the print job in bytes.

Description

String

Gets and sets the description of the print job.

Priority

Integer

Gets and sets the priority of the print job.

StartTime

Time

Gets and sets the earliest time the job should be printed.

UntilTime

Time

Gets and sets the latest time the job should be printed.

Notify

String

Gets and sets the user to notify when job processing is complete.

NotifyPath

ADsPath

Gets and sets the ADsPath for the user object of the user to notify when job processing is complete