Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IActivateAudioInterfaceAsyncOperation::GetActivateResult method

Gets the results of an asynchronous activation of a WASAPI interface initiated by an application calling the ActivateAudioInterfaceAsync function.

Syntax


HRESULT GetActivateResult(
  [out] HRESULT  *activateResult,
  [out] IUnknown **activatedInterface
);

Parameters

activateResult [out]
activatedInterface [out]

Return value

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

Return codeDescription
E_ILLEGAL_METHOD_CALL

The method was called before the asynchronous operation was complete.

 

Remarks

An application calls this method after Windows calls the ActivateCompleted method of the application’s IActivateAudioInterfaceCompletionHandler interface.

The result code returned through activateResult may depend on the requested interface. For additional information, see IMMDevice::Activate. A result code of E_ACCESSDENIED might indicate that the user has not given consent to access the device in a manner required by the requested WASAPI interface.

The returned activatedInterface may be NULL if activateResult is not a success code.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

IDL

Mmdeviceapi.idl

See also

IActivateAudioInterfaceAsyncOperation
ActivateAudioInterfaceAsync

 

 

Show:
© 2017 Microsoft