IActivateAudioInterfaceCompletionHandler::ActivateCompleted Method

Indicates that activation of a WASAPI interface is complete and results are available.

Syntax

public:
HRESULT ActivateCompleted(
         IActivateAudioInterfaceAsyncOperation *activateOperation
)  

Parameters

activateOperation
Type: IActivateAudioInterfaceAsyncOperation *

[in] An interface representing the asynchronous operation of activating the requested WASAPI interface

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The function succeeded.

Refer to WASAPI error codes.

Remarks

An application implements this method if it calls the ActivateAudioInterfaceAsync function. When Windows calls this method, the results of the activation are available. The application can then retrieve the results by calling the GetActivateResult method of the IActivateAudioInterfaceAsyncOperation interface, passed through the activateOperation parameter.

Requirements

Header: Declared in mmdeviceapi.h.

Library: Use MMDevApi.lib.

See also

IActivateAudioInterfaceCompletionHandler

IActivateAudioInterfaceCompletionHandler Members