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.
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?