IPortableDeviceServiceCapabilities::GetFormatPropertyAttributes method (portabledeviceapi.h)
The GetFormatPropertyAttributes method retrieves the attributes of a format property.
Syntax
HRESULT GetFormatPropertyAttributes(
[in] REFGUID Format,
[in] REFPROPERTYKEY Property,
[out] IPortableDeviceValues **ppAttributes
);
Parameters
[in] Format
The format whose property has its attributes retrieved.
[in] Property
The property whose attributes are retrieved.
[out] ppAttributes
The IPortableDeviceValues interface that receives the list of attributes.
Return value
If the method succeeds, it returns S_OK. Any other HRESULT value indicates that the call failed.
Remarks
A Windows Portable Devices (WPD) driver often treats objects of a given format the same. Many properties will therefore have attributes that are identical across all objects of that format. This method retrieves such attributes.
Note that this method will not retrieve attributes that differ across object instances.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | portabledeviceapi.h |