Skip to content

Latest commit

 

History

History
78 lines (59 loc) · 2.58 KB

nf-printerextension-iprintschemafeature-getoption.md

File metadata and controls

78 lines (59 loc) · 2.58 KB
UID title description tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:printerextension.IPrintSchemaFeature.GetOption
IPrintSchemaFeature::GetOption (printerextension.h)
Gets the option with the given name.
print
08/04/2022
IPrintSchemaFeature::GetOption
GetOption, GetOption method [Print Devices], GetOption method [Print Devices],IPrintSchemaFeature interface, IPrintSchemaFeature, IPrintSchemaFeature interface [Print Devices],GetOption method, IPrintSchemaFeature.GetOption, IPrintSchemaFeature::GetOption, print.iprintschemafeature_getoption, printerextension/IPrintSchemaFeature::GetOption
printerextension.h
Desktop
Windows 8
Windows Server 2012
Windows
IPrintSchemaFeature::GetOption
printerextension/IPrintSchemaFeature::GetOption
APIRef
kbSyntax
COM
Printerextension.h
IPrintSchemaFeature::GetOption

-description

Gets the option with the given name.

-parameters

-param bstrName [in]

The name of the option.

-param bstrNamespaceUri [in]

The namespace URI of the option.

-param ppOption [out, retval]

The returned option.

-returns

This method returns an HRESULT value, if the call was successful. Otherwise it returns the appropriate error code.

-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.

-see-also

IPrintSchemaCapabilities

IPrintSchemaFeature

IPrintSchemaOption

IPrintSchemaTicket