Using GetFeatureAttribute
Collapse the table of content
Expand the table of content

Using GetFeatureAttribute

This function is supported only for PPD features. If a certain attribute is not available, GetFeatureAttribute returns E_INVALIDARG.

In the following table, the pdwDataType parameter takes values of the EATTRIBUTE_DATATYPE enumerated type.

Feature AttributeOutput Parameters

DisplayName

*pdwDataType: kADT_UNICODE

pbData: null-terminated Unicode string of the feature keyword name's translation string

*pcbNeeded: byte count of the Unicode string pointed to by pbData (including the null terminator)

This feature attribute is available to any PPD feature EnumFeatures can return.

DefaultOption

*pdwDataType: kADT_ASCII

pbData: null-terminated ASCII string of the default option keyword name

*pcbNeeded: byte count of the ASCII string pointed to by pbData (including the null terminator)

This feature attribute is available to any PPD feature EnumFeatures can return.

OpenUIType

*pdwDataType: kADT_ASCII

pbData: null-terminated ASCII string containing one of following types: "PickOne", "PickMany", "Boolean".

*pcbNeeded: byte count of the ASCII string pointed to by pbData (including the null terminator)

This feature attribute is available to any PPD feature EnumFeatures can return.

OpenGroupType

*pdwDataType: kADT_ASCII

pbData: For features defined within the PPD's "*OpenGroup: InstallableOptions ... *CloseGroup: InstallableOptions" pair, a null-terminated ASCII string of "InstallableOptions" will be returned. For other features, an empty ASCII string (which has only the null terminator) will be returned.

*pcbNeeded: byte count of the ASCII string pointed to by pbData (including the null terminator)

This feature attribute is available to any PPD feature that EnumFeatures can return.

OrderDependencyValue

*pdwDataType: kADT_LONG

*pbData: the relative order specified by the PPD's *OrderDependency or *NonUIOrderDependency keyword for this feature. Notice that the first parameter of these keywords is a real number that is converted to a LONG and returned.

*pcbNeeded: sizeof(LONG)

This attribute is available only for a PPD feature that has an *OrderDependency or *NonUIOrderDependency entry in the PPD, and the entry omits optionKeyword.

OrderDependencySection

*pdwDataType: kADT_ASCII

pbData: null-terminated ASCII string containing one of following section names: "ExitServer", "Prolog", "DocumentSetup", "PageSetup", "JCLSetup", or "AnySetup".

*pcbNeeded: byte count of the ASCII string pointed to by pbData (including the null terminator)

This attribute is available only for a PPD feature that has an *OrderDependency or *NonUIOrderDependency entry in the PPD, and the entry omits optionKeyword.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft