Windows Media Format SDK banner art
PreviousNext

IWMDMOperation::BeginWrite

The BeginWrite method indicates that a write operation is being started by a method belonging to either the IWMDMStorageControl interface or the IWMDMDeviceControl interface.

Syntax

HRESULT BeginWrite();

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
WMDM_E_USER_CANCELLED The application instructs Windows Media Device Manager to cancel the current operation without waiting for it to finish.
E_FAIL An unspecified error occurred.

Remarks

When the method to which this interface has been passed is beginning to write data, the BeginWrite method must be the first in the IWMDMOperation interface to be called. If either E_FAIL  or WMDM_E_USER_CANCELLED is returned, the End method is called to indicate that termination is complete. If the application is using block mode and returns WMDM_E_USER_CANCELLED, then Windows Media Device Manager will return this same error to the application.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.