IPropertyEnumType::GetEnumType method (propsys.h)
Gets an enumeration type from an enumeration information structure.
Syntax
HRESULT GetEnumType(
[out] PROPENUMTYPE *penumtype
);
Parameters
[out] penumtype
Type: PROPENUMTYPE*
When this method returns, contains a pointer to one of the values listed below that indicate the enumeration type.
PET_DISCRETEVALUE (0)
Use GetDisplayText and either GetRangeMinValue or GetRangeSetValue.
PET_RANGEDVALUE (1)
Use GetDisplayText and either GetRangeMinValue or GetRangeSetValue.
PET_DEFAULTVALUE (2)
Use GetDisplayText.
PET_ENDRANGE (3)
Use GetValue or GetRangeMinValue.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For additional information, see enumeratedList.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | propsys.h |