MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / GetCurrentLibraryModulePath

Function GetCurrentLibraryModulePath

src/Config.cpp:248–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248std::string GetCurrentLibraryModulePath() {
249 HMODULE module = nullptr;
250 if (!GetModuleHandleExW(
251 GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
252 GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
253 reinterpret_cast<LPCWSTR>(&GetCurrentLibraryModulePath), &module)) {
254 return "";
255 }
256 return GetModulePath(module);
257}
258
259void AppendWindowsPortableSearchPaths(std::vector<std::string>& paths,
260 const std::string& modulePath) {

Callers 1

NewFromFileMethod · 0.85

Calls 1

GetModulePathFunction · 0.85

Tested by

no test coverage detected