carb::extras::fLibFlagLoadExisting
Defined in carb/extras/Library.h
-
constexpr LibraryFlags carb::extras::fLibFlagLoadExisting = 0x00000008
Flag to indicate that a valid library handle should only be returned if the requested library was already loaded into the process.
If the library was not already loaded in the process the call to loadLibrary() will fail and
nullptr
will be returned instead. When this flag is used, the returned handle (if found and non-nullptr) will always have its reference count incremented. The returned handle must still be passed to unloadLibrary() to ensure its reference is cleaned up when the handle is no longer needed.