IWMDMStorage interface (mswmdm.h)

An instance of the IWMDMStorage interface provides methods to examine and explore a storage (a generic name for a data or collection object, such as a file, folder, or playlist) on a device. Note that storages cannot be used to refer to objects on the computer, only on the device. IWMDMStorage can contain nested objects, and can represent the root object (the entire storage medium) or any child object, such as a folder or file, on that medium. The IWMDMStorage2 interface extends this interface by making it possible to get a storage pointer from a storage name and to get and set extended attributes. IWMDMStorage3 extends this interface by supporting metadata.

To obtain a root storage object which can be queried for all other objects on a device, you must call IWMDMDevice::EnumStorage, as described in Exploring a Device.

Inheritance

The IWMDMStorage interface inherits from the IUnknown interface. IWMDMStorage also has these types of members:

Methods

The IWMDMStorage interface has these methods.

 
IWMDMStorage::EnumStorage

The EnumStorage method retrieves an IWMDMEnumStorage interface to enumerate the immediate child storages of the current storage.
IWMDMStorage::GetAttributes

The GetAttributes method retrieves the attributes of the storage.
IWMDMStorage::GetDate

The GetDate method retrieves the date when the storage was last modified.
IWMDMStorage::GetName

The GetName method retrieves the display name of the storage.
IWMDMStorage::GetRights

The GetRights method retrieves rights information for a licensed storage.
IWMDMStorage::GetSize

The GetSize method retrieves the size of the storage, in bytes.
IWMDMStorage::GetStorageGlobals

The GetStorageGlobals method retrieves the IWMDMStorageGlobals interface of the root storage of this storage.
IWMDMStorage::SendOpaqueCommand

The SendOpaqueCommand method sends a command to the storage through Windows Media Device Manager, without processing it.
IWMDMStorage::SetAttributes

The SetAttributes method sets the attributes of the storage.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h

See also

IWMDMEnumStorage Interface

IWMDMStorage2 Interface

IWMDMStorage3 Interface

IWMDMStorage4 Interface

IWMDMStorageGlobals Interface

Interfaces for Applications