Allows passing arguments to the underlying LoadLibraryEx function.
This can be used to, for instance, limit the library search to certain folders (e.g. LOAD_LIBRARY_SEARCH_SYSTEM32), or to ensure the loaded library has a valid signature (e.g. LOAD_LIBRARY_REQUIRE_SIGNED_TARGET).
Allows passing arguments to the underlying LoadLibraryEx function.
This can be used to, for instance, limit the library search to certain folders (e.g. LOAD_LIBRARY_SEARCH_SYSTEM32), or to ensure the loaded library has a valid signature (e.g. LOAD_LIBRARY_REQUIRE_SIGNED_TARGET).
The list of flags that can be passed can be found at https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryexw .
Example: