IPrintTicketProvider::GetPrintCapabilities method

The IPrintTicketProvider::GetPrintCapabilities method queries the provider for a complete print capabilities document that describes the printer's features and parameters.

Syntax

HRESULT GetPrintCapabilities(
  [in]  IXMLDOMDocument2 *pPrintTicket,
  [out] IXMLDOMDocument2 **ppCapabilities
);

Parameters

  • pPrintTicket [in]
    A pointer to the print ticket. The settings of the print ticket constrain the device capabilities.

  • ppCapabilities [out]
    A pointer to a variable that receives the address of the device capabilities document.

Return value

IPrintTicketProvider::GetPrintCapabilities should return S_OK if the operation succeeds. Otherwise, this method should return a standard COM error code.

Remarks

The input print ticket should be used to determine and describe constraints on the settings in the output print capabilities document. No features, options, and parameters that are described in the output print capabilities document should change because of the contents of the input print ticket. Only the constraint status of the features, options, and parameters are subject to change.

Requirements

Target platform

Desktop

Header

Prdrvcom.h (include Prdrvcom.h)

 

 

Send comments about this topic to Microsoft