问题描述
如果您没有路径调用 LoadLibrary
(例如, LoadLibrary(whatever.dll)
,Windows将通常遵循其标准搜索算法,与使用它相同的查找EXE。
If you call LoadLibrary
without a path (e.g., LoadLibrary("whatever.dll")
, Windows will generally follow its standard search algorithm, the same one it uses to find EXEs.
我的问题是:假设应用程序清单指定了一个特定版本的系统DLL ,例如,comctl32.dll 6.0,在这种情况下,将 LoadLibrary(comctl32.dll)
立即到正确的并排文件夹,还是仍然执行某种搜索?
My question is this: suppose that an application manifest specifies specifies a particular version of a system DLL, say, comctl32.dll 6.0. In that case, will LoadLibrary("comctl32.dll")
go immediately to the correct side-by-side folder, or does it still perform some kind of search?
推荐答案
从
所以是的,如果一个清单存在,它将直接转到SxS文件夹。
So yes, if a manifest is present, it will directly go to the SxS folder.
这篇关于使用清单在LoadLibrary中搜索Windows路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!