| 53 | } |
| 54 | |
| 55 | void AttachDetours() |
| 56 | { |
| 57 | DetourTransactionBegin(); |
| 58 | DetourUpdateThread(GetCurrentThread()); |
| 59 | DetourAttach((PVOID*)&TrueLoadLibraryW, HookLoadLibraryW); |
| 60 | DetourAttach((PVOID*)&TrueLoadLibraryExW, HookLoadLibraryExW); |
| 61 | DetourAttach(&(PVOID&)TrueOpenEvent, HookOpenEvent); |
| 62 | DetourTransactionCommit(); |
| 63 | } |
| 64 | |
| 65 | void DetachDetours() |
| 66 | { |
no outgoing calls
no test coverage detected