| 246 | } |
| 247 | |
| 248 | std::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 | |
| 259 | void AppendWindowsPortableSearchPaths(std::vector<std::string>& paths, |
| 260 | const std::string& modulePath) { |
no test coverage detected