LoadLibraryW
LoadLibraryW is a Windows API function that loads a dynamic-link library (DLL) into the address space of the calling process. It is the wide-character version of LoadLibrary and accepts a single parameter: a null-terminated wide string specifying the file name or path of the module to load. The function returns a handle to the loaded module (HMODULE) on success or NULL on failure. When successful, the module’s reference count is incremented.
If the library is loaded for the first time, LoadLibraryW causes the DLL to be initialized by
Usage commonly involves obtaining a function pointer from the loaded library with GetProcAddress after a successful
Error handling is performed by checking for NULL return and querying GetLastError for the specific failure