IXAudio2::QueryInterface Method

Queries for a given COM interface on the XAudio2 object.

Syntax

public:
HRESULT QueryInterface(
         REFIID riid,
         void **ppvInterface
)  

Parameters

riid
Type: REFIID 

The REFIID that identifies the interface to query for.

ppvInterface
Type: void **

[out] Address of a pointer that receives the interface.

Return value

Type: HRESULT 

Returns S_OK if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

Remarks

Only IID_IUnknown and IID_IXAudio2 are provided by XAudio2.

Requirements

Header: Declared in xaudio2.h.

Library: Use xaudio2.lib.

See also

IXAudio2

IXAudio2 Members