IPrintOemPrintTicketProvider::ValidatePrintTicket method

The IPrintOemPrintTicketProvider::ValidatePrintTicket method validates a print ticket.


HRESULT ValidatePrintTicket(
  IXMLDOMDocument2 *pPrintTicket



A pointer to an input print ticket. When IPrintOemPrintTicketProvider::ValidatePrintTicket successfully returns, pPrintTicket points to a validated print ticket.

Return Value

IPrintOemPrintTicketProvider::ValidatePrintTicket should return S_NO_CONFLICT or S_CONFLICT_RESOLVED if the operation succeeds. Otherwise, this method should return a standard COM error code. Note that Unidrv and Pscript do not consider S_OK to mean successful completion for this method.


If necessary, the IPrintOemPrintTicketProvider::ValidatePrintTicket method should perform any conflict resolution, by inspecting the settings made in the public and Unidrv-private parts of the print ticket, to ensure that the resulting print ticket is valid, and that all of the constraints are resolved. If any required nodes are not present in the original print ticket, IPrintOemPrintTicketProvider::ValidatePrintTicket can add them to the returned print ticket.


Target Platform Desktop
Header prcomoem.h (include Prcomoem.h)

See Also