Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Windows Portable Devices supports the following property attributes. These attributes are returned by the following methods:
- IPortableDeviceCapabilities::GetFixedPropertyAttributes
- IPortableDeviceProperties::GetPropertyAttributes
- IPortableDeviceServiceCapabilities::GetFormatPropertyAttributes
Attribute | VarType | Description |
---|---|---|
WPD_PROPERTY_ATTRIBUTE_CAN_DELETE | VT_BOOL | A Boolean value that specifies whether the client can delete the property. To delete a property, set its value to VT_EMPTY. |
WPD_PROPERTY_ATTRIBUTE_CAN_READ | VT_BOOL | A Boolean value that specifies whether the client can read the property. |
WPD_PROPERTY_ATTRIBUTE_CAN_WRITE | VT_BOOL | A Boolean value that specifies whether the client can modify the property. |
WPD_PROPERTY_ATTRIBUTE_DEFAULT_VALUE | VT_XXXX | A value that is defined by the device that specifies the default value of a property. This applies to writeable properties only. |
WPD_PROPERTY_ATTRIBUTE_ENUMERATION_ELEMENTS | VT_UNKNOWN | An IPortableDevicePropVariantCollection interface that contains a collection of values for a property whose WPD_PROPERTY_ATTRIBUTE_FORM attribute is WPD_PROPERTY_ATTRIBUTE_FORM_ENUMERATION. The data type depends on the property being queried. |
WPD_PROPERTY_ATTRIBUTE_FAST_PROPERTY | VT_BOOL | If True, then this property belongs to the fast properties group. These are properties that can be retrieved from the device quickly. |
WPD_PROPERTY_ATTRIBUTE_FORM | VT_UI4 | A WpdAttributeForm enumerated value that specifies the form of the valid values allowed for this property. |
WPD_PROPERTY_ATTRIBUTE_NAME | VT_LPWSTR | A string that specifies the script-friendly name of the property. Valid characters are alphanumeric [a-zA-Z0-9] and '_'. |
WPD_PROPERTY_ATTRIBUTE_RANGE_MAX | VT_XXXX | The maximum value for a property whose WPD_PROPERTY_ATTRIBUTE_FORM attribute is WPD_PROPERTY_ATTRIBUTE_FORM_RANGE. The data type can be any of the numeric types. |
WPD_PROPERTY_ATTRIBUTE_RANGE_MIN | VT_XXXX | The minimum value for a property whose WPD_PROPERTY_ATTRIBUTE_FORM attribute is WPD_PROPERTY_ATTRIBUTE_FORM_RANGE. The data type can be any of the numeric types. |
WPD_PROPERTY_ATTRIBUTE_RANGE_STEP | VT_XXXX | The step value for a property whose WPD_PROPERTY_ATTRIBUTE_FORM attribute is WPD_PROPERTY_ATTRIBUTE_FORM_RANGE. The step specifies by how much a range property must change. For example, a property with a minimum value of 10, a maximum value of 20, and a step of 5 could have the following values: 10, 15, 20. The data type can be any of the numeric types. |
WPD_PROPERTY_ATTRIBUTE_REGULAR_EXPRESSION | VT_LPWSTR | A regular expression string that specifies acceptable values for properties whose form is WPD_PROPERTY_ATTRIBUTE_FORM_REGULAR_EXPRESSION. |
WPD_PROPERTY_ATTRIBUTE_VARTYPE | VT_UI4 | An integer that specifies the VARTYPE of the property, for example, VT_BOOL. |
WPD_PROPERTY_ATTRIBUTE_MAX_SIZE | VT_UI8 | A value that specifies the maximum size for the value of this property, in bytes. |
Requirements
Requirement | Value |
---|---|
Header |
|