IPrintSchemaTicket::CommitAsync method

Gets an asynchronous PrintTicket commit operation context.

Syntax

HRESULT CommitAsync(
  IPrintSchemaTicket         *pPrintTicketCommit,
  IPrintSchemaAsyncOperation **ppAsyncOperation
);

Parameters

pPrintTicketCommit

The print ticket to commit.

ppAsyncOperation

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.

Requirements

   
Target Platform Desktop
Header printerextension.h

See Also

IPrintSchemaAsyncOperation::Start

IPrintSchemaAsyncOperationEvent::Completed

IPrintSchemaTicket