Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPrintSchemaCapabilities::GetSelectedOptionInPrintTicket method

Gets the selected option for a feature in IPrintSchemaTicket.

Syntax


HRESULT GetSelectedOptionInPrintTicket(
  [in]          IPrintSchemaFeature *pFeature,
  [out, retval] IPrintSchemaOption  **ppOption
);

Parameters

pFeature [in]

The specified feature.

ppOption [out, retval]

The returned option.

Return value

This method returns an HRESULT value.

Remarks

When the requested feature, option or property is not found, this method returns S_FALSE and sets a NULL pointer on the output object of the feature, option or property.

So if the IPrintSchemaTicket object does not contain the specified feature, option or property, the app must obtain an IPrintSchemaCapabilities object and query it via IPrintSchemaCapabilities::GetFeatureByKeyName or via IPrintSchemaCapabilities::GetFeature.

Requirements

Target platform

Desktop

Version

Windows 8

Header

Printerextension.h

See also

IPrintSchemaCapabilities
IPrintSchemaTicket

 

 

Send comments about this topic to Microsoft

Show: