Hardware Dev Center

IPrintSchemaTicket::CommitAsync method

Gets an asynchronous PrintTicket commit operation context.

Syntax


HRESULT CommitAsync(
  [in]  IPrintSchemaTicket         *pPrintTicketCommit,
  [out] IPrintSchemaAsyncOperation **ppAsyncOperation
);

Parameters

pPrintTicketCommit [in]

The print ticket to commit.

ppAsyncOperation [out]

The asynchronous commit operation context.

Return value

This method returns an HRESULT value.

Remarks

To perform the commit operation, call the IPrintSchemaAsyncOperation::Start method to validate the given pPrintTicketCommit and then apply the validated PrintTicket settings to the current PrintTicket object. When the commit operation is completed or if an error occurs during the commit operation, the IPrintSchemaAsyncOperationEvent::Completed event is fired.

See also

IPrintSchemaTicket
IPrintSchemaAsyncOperation::Start
IPrintSchemaAsyncOperationEvent::Completed

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft