Share via


IWMDMOperation::End

banner art

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

Syntax

HRESULT End(
  HRESULT*  phCompletionCode,
  IUnknown*  pNewObject
);

Parameters

phCompletionCode

[in]  Completion code for the operation.

pNewObject

[in]  Pointer to a new object, if any.

Return Values

The method returns an HRESULT. All the interface methods in Windows Media Device Manager and service provider can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes

For a complete list of possible error codes, see Error Codes.

Windows Media Device Manager ignores any return code returned by the End method because the current operation is finished or terminated before this method is called.

Remarks

The End method is always the last one called. The completion code provides information concerning how the previous operation ended.

When transferring to storage, the pNewObject parameter contains a pointer to a new IWMDMStorage object representing the new object that has been transferred to the media device.

When transferring from storage, the pNewObject parameter contains a pointer to the IWMDMStorage object that already represented the object in storage.

Requirements

Header: Defined in wmdm.idl.

Library: mssachlp.lib

See Also