Queries for a given COM interface on the XAudio2 object.
public:
HRESULT QueryInterface(
REFIID riid,
void **ppvInterface
)
riid
Type: REFIID
The REFIID that identifies the interface to query for.
ppvInterface
Type: void **
[out] Address of a pointer that receives the interface.
Type: HRESULT
Returns S_OK if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.
Only IID_IUnknown and IID_IXAudio2 are provided by XAudio2.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.