MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_LoadLibrary_PinModule

Function SK_LoadLibrary_PinModule

src/diagnostics/load_library.cpp:162–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161template <typename _T>
162BOOL
163__stdcall
164SK_LoadLibrary_PinModule (const _T* pStr)
165{
166#pragma push_macro ("GetModuleHandleEx")
167
168#undef GetModuleHandleEx
169 static GetModuleHandleEx_pfn GetModuleHandleEx =
170 (GetModuleHandleEx_pfn)
171 LPCVOID ( typeid ( _T) ==
172 typeid (wchar_t) ?
173 (GetModuleHandleEx_pfn) &GetModuleHandleExW :
174 (GetModuleHandleEx_pfn) &GetModuleHandleExA );
175
176 HMODULE hModDontCare = 0x0;
177
178 return
179 GetModuleHandleEx ( GET_MODULE_HANDLE_EX_FLAG_PIN,
180 pStr,
181 &hModDontCare );
182
183#pragma pop_macro ("GetModuleHandleEx")
184}
185
186template <typename _T>
187bool

Callers 3

SK_TraceLoadLibraryFunction · 0.85
SK_ThreadWalkModulesFunction · 0.85
SK_WalkModules_StepImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected