MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / QueryInterface

Method QueryInterface

projects/WinDurango.D3D11X/src/IDXGIAdapter.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5//
6// IUnknown
7//
8template <abi_t ABI> HRESULT DXGIAdapter1<ABI>::QueryInterface(REFIID riid, void **ppvObject)
9{
10 if (riid == __uuidof(IDXGIAdapter) || riid == __uuidof(IDXGIAdapter1))
11 {
12 *ppvObject = this;
13 AddRef();
14 return S_OK;
15 }
16
17 if (riid == __uuidof(xbox::IGraphicsUnwrap))
18 {
19 *ppvObject = m_pFunction;
20 return S_OK;
21 }
22
23 IMPLEMENT_STUB();
24 return E_NOTIMPL;
25}
26
27template <abi_t ABI> ULONG DXGIAdapter1<ABI>::AddRef()

Callers

nothing calls this directly

Calls 1

AddRefFunction · 0.85

Tested by

no test coverage detected