Partager via


IMDSPStorage Interface

banner art

The IMDSPStorage interface provides an instanced-based association with a storage medium on a device. An IMDSPStorage interface can represent the entire storage medium, or can be further enumerated to represent any object, such as a folder or file, on that medium. This reiterative enumeration provides the mechanism for describing the organization of a hierarchically structured storage medium.

The methods of IMDSPStorage can be used to gather information about the object that the interface represents. The IMDSPStorage2 interface extends IMDSPStorage by getting and setting extended attributes and making it possible to get a pointer to a storage medium from its name.

In addition to the methods inherited from IUnknown, the IMDSPStorage interface exposes the following methods.

Method Description
CreateStorage Creates a new storage and returns a pointer to the IMDSPStorage interface on the newly created storage. The new storage can be created at the same level or can be inserted into the current storage.
EnumStorage Retrieves the attributes of the storage object.
GetAttributes Retrieves the date on which the storage object (file or folder) was most recently modified.
GetDate Accesses the IMDSPEnumStorage interface to enumerate the individual storage media on a device
GetName Retrieves the display name of the storage object.
GetRights Retrieves the size of the storage object, in bytes.
GetSize Retrieves the IMDSPStorageGlobals interface to provide access to global information about a storage medium.
GetStorageGlobals Retrieves the rights information for the object.
SendOpaqueCommands Sends commands through Windows Media Device Manager. Without acting on it, Windows Media Device Manager passes the command through to a device.
SetAttributes Sets the attributes of the storage object.

See Also