| 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 | |
| 54 | BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD reason, LPVOID pReserved) |
no test coverage detected