IXAudio2::QueryInterface method

Queries for a given COM interface on the XAudio2 object.

Syntax


HRESULT QueryInterface(
  [in]   REFIID riid,
  [out]  void **ppvInterface

);

Parameters

riid [in]

The REFIID that identifies the interface to query for.

ppvInterface [out]

Address of a pointer that receives the interface.

Return value

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.

Platform Requirements

Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)

Requirements

Header

Xaudio2.h

See also

IXAudio2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft