MCPcopy Create free account
hub / github.com/Apache553/SubtitleFontHelper / GetDllSelfPath

Function GetDllSelfPath

FontLoadInterceptor/dllmain.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95wil::unique_hlocal_string GetDllSelfPath()
96{
97 HMODULE hModule;
98 THROW_LAST_ERROR_IF(
99 GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
100 reinterpret_cast<wchar_t*>(DllMain), &hModule) == FALSE);
101 auto ret = wil::GetModuleFileNameW<wil::unique_hlocal_string>(hModule);
102 return ret;
103}
104
105namespace sfh
106{

Callers 1

InjectProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected