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

Method QueryInterface

projects/WinDurango.KernelX/src/CurrentApp.cpp:3–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "CurrentApp.h"
2
3HRESULT EraXboxUserLicenseInformationWrapper::QueryInterface(const IID &riid, void **ppvObject)
4{
5 if (riid == __uuidof(EraIXboxUserLicenseInformation))
6 {
7 *ppvObject = reinterpret_cast<EraICurrentApp*>(this);
8 AddRef();
9 return S_OK;
10 }
11
12 *ppvObject = nullptr;
13 winDurango->log.Warn("WinDurango::KernelX::CurrentApp", "No Interface Found: EraXboxUserLicenseInformationWrapper - {:08x}-{:04x}-{:04x}-{:02x}{:02x}-{:02x}{:02x}{:02x}{:02x}{:02x}{:02x}",
14 riid.Data1, riid.Data2, riid.Data3, riid.Data4[0],
15 riid.Data4[1], riid.Data4[2], riid.Data4[3], riid.Data4[4],
16 riid.Data4[5], riid.Data4[6], riid.Data4[7]);
17 return E_NOINTERFACE;
18}
19
20ULONG EraXboxUserLicenseInformationWrapper::AddRef()
21{

Callers

nothing calls this directly

Calls 1

AddRefFunction · 0.85

Tested by

no test coverage detected