| 28 | } |
| 29 | |
| 30 | DynamicLibUPtr 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 | |
| 37 | DynamicLibUPtr DynamicLib::currentExecutable() { |
| 38 | void* handle = GetModuleHandle(0); |
nothing calls this directly
no test coverage detected