MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetModulePath

Function GetModulePath

src/helper.cpp:346–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344namespace SystemHelper
345{
346 static std::string GetModulePath()
347 {
348 HMODULE hModule = nullptr;
349
350 // Get the module handle for the DLL containing this code
351 GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCWSTR)&GetModulePath, &hModule);
352
353 wchar_t path[FILENAME_MAX] = { 0 };
354 GetModuleFileNameW(hModule, path, FILENAME_MAX);
355 return std::filesystem::path(path).parent_path().string();
356 }
357
358 static DWORD GetCurrentDisplayFrequency()
359 {

Callers 3

helper.cppFile · 0.85
LoadAchievementsFunction · 0.85
LoadTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected