MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / GetRuntimeModule

Function GetRuntimeModule

projects/WinDurango.KernelX/src/Hooks.cpp:126–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126HMODULE GetRuntimeModule()
127{
128 std::array<const wchar_t *, 3> modules = {L"vccorlib110.dll", L"vccorlib120.dll", L"vccorlib140.dll"};
129 HMODULE hModule = nullptr;
130
131 for (auto &module : modules)
132 {
133 HMODULE Module = GetModuleHandleW(module);
134 if (Module != nullptr)
135 {
136 hModule = Module;
137 break;
138 }
139 }
140
141 return hModule;
142}
143
144template <typename T> inline T GetVTableMethod(void *table_base, std::uintptr_t index)
145{

Callers 4

WdRoInitializeLibrariesFunction · 0.85
KernelxInitializeFunction · 0.85
EraLoadLibraryExAFunction · 0.85
EraLoadLibraryWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected