IADsPrintJob

The IADsPrintJob interface enables a COM object in Active Directory to manage general information about a print job. Use IADsPrintJobOperations for managing the print job itself across a network. The collection of print jobs managed by any one print queue is available through IADsPrintQueueOperations::PrintJobs.

Properties accessed by IADsPrintJob are defined on the ADSI PrintJob Object.

When to Implement

Implement IADsPrintJob only when you are providing an Active Directory implementation for a directory service that supports providing information about print jobs across a network. If your directory service does not support this functionality, return E_NOTIMPL for this interface.

The collection of print jobs managed by any one print queue is available through the IADsPrintQueueOperations::PrintJobs method.

When to Use

Call methods on this interface to reference general information about a print job, such as the associated end-user, print queue, priority, or times.

Methods in VTable Order

IUnknown Methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch Methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of object's programmable interface.
GetIDsOfNames Maps name of method or property to DISPID.
Invoke Calls one of the object's methods, or gets/sets one of its properties.

IADs Properties and Methods Description
get_Name Gets the object's relative name.
get_Class Gets the object's schema class name.
get_GUID Gets the object's globally unique identifier.
get_ADsPath Gets the object's ADsPath that uniquely identifies this object from all others.
get_Parent Gets the object's ADsPath string for its parent container.
get_Schema Gets the ADsPath string to the schema class definition object for this object.
GetInfo Reloads the changes on this object and its dependents.
SetInfo Saves the changes on this object and its dependents.
Get Gets the value for a property by name.
Put Sets the value for a property by name.
GetEx Gets the value for a single or multi-valued property by name.
PutEx Sets the value for a single or multi-valued property by name.
GetInfoEx Reloads specific property values for this object as they exist in the underlying directory service.

IADsPrintJob Methods Description
get_HostPrintQueue ADsPath naming the print queue processing this print job
get_User Name of user submitting print job.
get_UserPath ADsPath name to user object for user submitting the print job.
get_TimeSubmitted Time job submitted to the print queue.
get_TotalPages Total number of pages in the print job.
get_Size Size of the print job in bytes.
get/put_Description Description of the print job.
get/put_Priority Priority of the print job.
get/put_StartTime Earliest time job should be printed.
get/put_UntilTime Latest time job should be printed.
get/put_Notify User to notify when job complete.
get/put_NotifyPath ADsPath for user object of user to notify when jobis complete.