LoadLibraryW() failing to load DLL in System32
问题 I'm trying to load a DLL that was installed with a printer driver in the C:\Windows\System32\ folder with the following code: LoadLibraryW(L"C:\\Windows\\System32\\MagAPI.dll"); GetLastError() is reporting that "The specified module could not be found". If I move the DLL outside of the System32 folder (C:\SomeFolder\MagAPI.dll for example) then it will load fine so it doesn't seem like it's a problem with the DLL itself. Is there some weird Windows security feature that might be blocking my