IMDSPObject interface (mswmdm.h)

The IMDSPObject interface manages the transfer of data to and from storage media.

The Open, Read, Write, and Close methods are valid only if the storage object is a file. The client would typically call Open, perform a number of Read or Write operations and then call Close. This allows for a buffered mode read/write of the storage medium. The service provider should be able to handle any other calls on the device or storage interfaces (for example, enumerating content or getting global information about the storage medium) while the read or write operation is in progress.

The service provider should also be able to handle simultaneous read or write operations on multiple files. If the underlying file-system does not support opening of multiple files at the same time, service provider should gracefully return an error.

The Delete, Rename, and Move methods are valid for both files and folders.

Inheritance

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

Methods

The IMDSPObject interface has these methods.

 
IMDSPObject::Close

The Close method closes a file on a storage medium of a media device.
IMDSPObject::Delete

The Delete method removes an object or objects from a storage medium on a media device.
IMDSPObject::Move

The Move method moves a file or folder on a media device.
IMDSPObject::Open

The Open method opens the associated object and prepares it for Read or Write operations. This operation is valid only if the storage object represents a file.
IMDSPObject::Read

The Read method reads data from the object at the current position. This operation is valid only if the storage object represents a file.
IMDSPObject::Rename

The Rename method renames the associated object which can be a file or a folder.
IMDSPObject::Seek

The Seek method sets the current position within the object. This operation is valid only if the storage object represents a file.
IMDSPObject::Write

The Write method writes data to the object at the current position within the object. This operation is valid only if the storage object represents a file.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h

See also

IMDSPObject2 Interface

Interfaces for Service Providers