MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / dlopen

Function dlopen

framework/src/bundle/BundleUtils.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void*
41dlopen(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
51void*
52dlsym(void* handle, char const* symbol)

Callers 2

GetExecutableHandleFunction · 0.85
LoadMethod · 0.85

Calls 1

ToWStringFunction · 0.85

Tested by

no test coverage detected