IWMDMOperation interface (mswmdm.h)

This optional, application-implemented IWMDMOperation interface allows the application to control how data is read from or written to the computer during a file transfer.

Inheritance

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

Methods

The IWMDMOperation interface has these methods.

 
IWMDMOperation::BeginRead

The BeginRead method indicates that a "read from device" action is beginning. Windows Media Device Manager only calls this method if the application calls IWMDMStorageControl::Read and passes in this IWMDMOperation interface.
IWMDMOperation::BeginWrite

The BeginWrite method indicates that a "write to device" action is beginning. Windows Media Device Manager only calls this method if the application calls IWMDMStorageControl/2/3::Insert/2/3 and passes in this interface.
IWMDMOperation::End

The End method indicates that a read or write operation is finished, whether successful or not, and it returns a completion code.
IWMDMOperation::GetObjectAttributes

The GetObjectAttributes method allows the application to specify attributes for an object being written to a device. Windows Media Device Manager calls this method before a file is written to the device in order to learn the file's attributes.
IWMDMOperation::GetObjectName

Windows Media Device Manager calls GetObjectName before an object is written to the device in order to know what it should be named on the device.
IWMDMOperation::GetObjectTotalSize

Windows Media Device Manager calls GetObjectTotalSize before a file is written to the device in order to retrieve the total size of the object, in bytes.
IWMDMOperation::SetObjectAttributes

The SetObjectAttributes method specifies the file attributes. This method is currently not called by Windows Media Device Manager.
IWMDMOperation::SetObjectName

The SetObjectName method assigns a name to the content being read or written. This method is currently not called by Windows Media Device Manager.
IWMDMOperation::SetObjectTotalSize

The SetObjectTotalSize method assigns the total size in bytes of an object. This method is currently not called by Windows Media Device Manager.
IWMDMOperation::TransferObjectData

The TransferObjectData method is called to allow the application to transfer a block of data to or from the computer.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h

See also

Handling File Transfers Manually

IWMDMOperation2 Interface

IWMDMOperation3 Interface

Interfaces for Applications