Storage Properties

Windows Portable Devices supports the following storage properties.

Property VarType Description
WPD_STORAGE_CAPACITY VT_UI8 The total storage capacity, in bytes.
WPD_STORAGE_CAPACITY_IN_OBJECTS VT_UI8 Indicates the total storage capacity in objects; for example, the available slots on a SIM card.
WPD_STORAGE_DESCRIPTION VT_LPWSTR A human-readable description of the storage.
WPD_STORAGE_FILE_SYSTEM_TYPE VT_LPWSTR A string description of the file system used by the storage, for example, "FAT32", "NTFS", "Contoso File System", and so on.
WPD_STORAGE_FREE_SPACE_IN_BYTES VT_UI8 The available storage space, in bytes.
WPD_STORAGE_FREE_SPACE_IN_OBJECTS VT_UI8 The number of additional objects that can be written to the device. For example, if a device only allows a single object, this would be zero if the object already existed.
WPD_STORAGE_SERIAL_NUMBER VT_LPWSTR A vendor-specific serial number for the storage.
WPD_STORAGE_MAX_OBJECT_SIZE VT_UI8 Specifies the maximum size of a single object, in bytes, that can be placed on this storage.
WPD_STORAGE_TYPE VT_UI4 Describes the physical type of a memory storage medium.
WPD_STORAGE_ACCESS_CAPABILITY VT_UI4 Identifies any write-protection that globally affects this storage. This takes precedence over access specified on individual objects. Possible values are from the WPD_STORAGE_ACCESS_CAPABILITY_VALUES enumeration defined in PortableDevice.h. For example, if WPD_STORAGE_TYPE is ROM (that is WPD_STORAGE_TYPE_FIXED_ROM or WPD_STORAGE_TYPE_REMOVABLE_ROM), then WPD_STORAGE_ACCESS_CAPABILITY value must be WPD_STORAGE_ACCESS_CAPABILITY_READ_ONLY_WITHOUT_OBJECT_DELETION.

Requirements

Requirement Value
Header
PortableDevice.h

See also

WPD Properties and Attributes