| 38 | } |
| 39 | |
| 40 | void* |
| 41 | dlopen(char const* path, int) |
| 42 | { |
| 43 | auto loadLibrary = [](std::string const& path) -> HANDLE |
| 44 | { |
| 45 | std::wstring wpath(cppmicroservices::util::ToWString(path)); |
| 46 | return LoadLibraryW(wpath.c_str()); |
| 47 | }; |
| 48 | return reinterpret_cast<void*>(path == nullptr ? GetModuleHandleW(nullptr) : loadLibrary(path)); |
| 49 | } |
| 50 | |
| 51 | void* |
| 52 | dlsym(void* handle, char const* symbol) |
no test coverage detected