| 229 | {} |
| 230 | |
| 231 | void CustomFunctionInjector::Initialize() |
| 232 | { |
| 233 | using namespace std::placeholders; |
| 234 | wrappers_.GetFunctionMappings.AddPostHook(std::bind(&CustomFunctionInjector::OnAfterGetFunctionMappings, this, _1, _2, _3)); |
| 235 | wrappers_.Call.SetWrapper(std::bind(&CustomFunctionInjector::CallWrapper, this, _1, _2, _3)); |
| 236 | wrappers_.Query.SetWrapper(std::bind(&CustomFunctionInjector::QueryWrapper, this, _1, _2, _3)); |
| 237 | wrappers_.CreateFileW.AddPostHook(std::bind(&CustomFunctionInjector::OnCreateFile, this, _1, _2, _3, _4, _5, _6, _7, _8)); |
| 238 | wrappers_.CloseHandle.AddPostHook(std::bind(&CustomFunctionInjector::OnCloseHandle, this, _1, _2)); |
| 239 | } |
| 240 | |
| 241 | unsigned gCustomEventDepth{ 0 }; |
| 242 |
nothing calls this directly
no test coverage detected