Share via


IWMDMProgress2::End2

banner art

The End2 method extends IWMDMProgress::End by the parameter hrCompletionCode, which provides the completion status of the operation that ended.

Syntax

HRESULT End2(
  HRESULT  hrCompletionCode
);

Parameters

hrCompletionCode

[in]  The return value of the operation that ended.

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.

Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

IWMDMProgress2 is a callback interface provided by the application to Windows Media Device Manager for a particular operation. End2 is called when that operation is completed. The hrCompletionCode parameter is the completion status of the operation that was in progress. For example, an application can provide an IWMDMProgress2 interface pointer to the Insert2 method. When the file transfer done by Insert2 is completed, End2 is called on the IWMDMProgress2 interface pointer with the completion status of the file transfer as the hrCompletion parameter.

Requirements

Header: Defined in wmdm.idl.

Library: mssachlp.lib

See Also