MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Initialize

Function Initialize

IntelPresentMon/FlashInjectorLibrary/DLLMain.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void Initialize()
38 {
39 LOGI << "GfxLayer attached!";
40
41 // Hook APIs
42 Hooks::DXGI::Hook_DXGI();
43 Hooks::D3D10::Hook_D3D10();
44 Hooks::D3D11::Hook_D3D11();
45
46 // start action server
47 pServer = std::make_unique<inj::act::ActionServer>(
48 inj::act::InjectionPointExecutionContext{},
49 inj::act::MakePipeName(GetCurrentProcessId()), 2, ""
50 );
51 }
52}
53
54BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD reason, LPVOID pReserved)

Callers 1

DllMainFunction · 0.70

Calls 4

Hook_DXGIFunction · 0.85
Hook_D3D10Function · 0.85
Hook_D3D11Function · 0.85
MakePipeNameFunction · 0.85

Tested by

no test coverage detected