Share via


Attributes

banner art

Previous Next

Attributes

Windows Portable Devices supports the following attributes.

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 clients 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 very quickly retrieved from the device.
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_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_MAX_SIZE VT_UI8 A value that specifies the maximum size (in bytes) for the value of this property.
WPD_RESOURCE_ATTRIBUTE_CAN_DELETE VT_BOOL A Boolean value that specifies whether a client has permission to delete the resource. If absent, then it is assumed to be false.
WPD_RESOURCE_ATTRIBUTE_CAN_READ VT_BOOL A Boolean value that specifies whether a client has permission to open the resource for Read access. If absent, then it is assumed to be False.
WPD_RESOURCE_ATTRIBUTE_CAN_WRITE VT_BOOL A Boolean value that specifies whether a client has permission to open the resource for Write access. If absent, then it is assumed to be false.
WPD_RESOURCE_ATTRIBUTE_OPTIMAL_READ_BUFFER_SIZE VT_UI4 The recommended buffer size that a caller should use for buffered reads from the resource.
WPD_RESOURCE_ATTRIBUTE_OPTIMAL_WRITE_BUFFER_SIZE VT_UI4 The recommended buffer size that a caller should use for buffered writes on the resource.
WPD_RESOURCE_ATTRIBUTE_TOTAL_SIZE VT_UI8 The total size of the resource data, in bytes.

Requirements

Header: Defined in PortableDevice.h

See Also

Previous Next