Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries for a given COM interface on the XAudio2 object.
Syntax
HRESULT QueryInterface(
  [in]  REFIID riid,
  [out] void   **ppvInterface
);
Parameters
[in] riid
The REFIID that identifies the interface to query for.
[out] ppvInterface
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 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)Requirements
| Requirement | Value | 
|---|---|
| Target Platform | Windows | 
| Header | xaudio2.h |