Windows path searching in LoadLibrary with manifest

前端 未结 2 1891
小蘑菇
小蘑菇 2021-01-13 21:22

If you call LoadLibrary without a path (e.g., LoadLibrary(\"whatever.dll\"), Windows will generally follow its standard search algorithm, the same

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 21:56

    From Microsoft:

    Applications can control the location from which a DLL is loaded by specifying a full path, using DLL redirection, or by using a manifest. If none of these methods are used, the system searches for the DLL at load time as described in this topic.

    So yes, if a manifest is present, it will directly go to the SxS folder.

提交回复
热议问题