| 74 | } |
| 75 | |
| 76 | DWORD WINAPI DelayedAttach(LPVOID lpThreadParameter) |
| 77 | { |
| 78 | // check required dll |
| 79 | sfh::Detour::LoadFunctionPointers(); |
| 80 | // create thread to acquire loader lock |
| 81 | wil::unique_handle hThread(CreateThread( |
| 82 | nullptr, |
| 83 | 0, |
| 84 | DummyThread, |
| 85 | nullptr, |
| 86 | CREATE_SUSPENDED, |
| 87 | &attachThreadId)); |
| 88 | if (!hThread.is_valid()) |
| 89 | return 1; |
| 90 | ResumeThread(hThread.get()); |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | |
| 95 | wil::unique_hlocal_string GetDllSelfPath() |
nothing calls this directly
no outgoing calls
no test coverage detected