MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / DllGetClassObject

Function DllGetClassObject

ExplorerTAP/module.cpp:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "simplefactory.hpp"
6
7_Use_decl_annotations_ STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) try
8{
9 if (rclsid == CLSID_TAPSite)
10 {
11 *ppv = nullptr;
12 return winrt::make<SimpleFactory<TAPSite>>().as(riid, ppv);
13 }
14 else
15 {
16 return CLASS_E_CLASSNOTAVAILABLE;
17 }
18}
19catch (...)
20{
21 return winrt::to_hresult();
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected