MCPcopy Create free account
hub / github.com/Norbyte/ositools / Initialize

Method Initialize

OsiInterface/CustomFunctions.cpp:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229{}
230
231void 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
241unsigned gCustomEventDepth{ 0 };
242

Callers

nothing calls this directly

Calls 2

AddPostHookMethod · 0.80
SetWrapperMethod · 0.80

Tested by

no test coverage detected