| 195 | } |
| 196 | |
| 197 | BOOL APIENTRY DllMain( HMODULE hModule, |
| 198 | DWORD ul_reason_for_call, |
| 199 | LPVOID lpReserved |
| 200 | ) |
| 201 | { |
| 202 | switch (ul_reason_for_call) |
| 203 | { |
| 204 | case DLL_PROCESS_ATTACH: |
| 205 | if (ShouldRunProxy()) { |
| 206 | gDxgiWrapper = std::make_unique<DxgiWrapper>(); |
| 207 | SetupOsirisProxy(hModule); |
| 208 | } |
| 209 | break; |
| 210 | |
| 211 | case DLL_PROCESS_DETACH: |
| 212 | if (gDxgiWrapper) { |
| 213 | osidbg::gOsirisProxy->Shutdown(); |
| 214 | osidbg::gOsirisProxy.reset(); |
| 215 | gDxgiWrapper.reset(); |
| 216 | } |
| 217 | break; |
| 218 | |
| 219 | case DLL_THREAD_ATTACH: |
| 220 | case DLL_THREAD_DETACH: |
| 221 | break; |
| 222 | } |
| 223 | return TRUE; |
| 224 | } |
| 225 |
nothing calls this directly
no test coverage detected