Edit

Resource Attributes

Windows Portable Devices supports the following resource attributes. These attributes are returned by the following methods:

Attribute VarType Description
WPD_RESOURCE_ATTRIBUTE_CAN_DELETE VT_BOOL A Boolean value that specifies whether a client has permission to delete the resource. If absent, 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, 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, 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

Requirement Value
Header
PortableDevice.h

See also

Properties