MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / loadLibrary

Method loadLibrary

source/core/StarDynamicLib_windows.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30DynamicLibUPtr DynamicLib::loadLibrary(String const& libraryName) {
31 void* handle = LoadLibraryW(stringToUtf16(libraryName).get());
32 if (handle == NULL)
33 return {};
34 return make_unique<PrivateDynLib>(handle);
35}
36
37DynamicLibUPtr DynamicLib::currentExecutable() {
38 void* handle = GetModuleHandle(0);

Callers

nothing calls this directly

Calls 2

stringToUtf16Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected