Author: Sebastian G.Sebastian G. Date: May 1, 2008 19:47
Grinder wrote:
> TheOne wrote:
>> While I'm playing with depends.exe tool, I found almost all the
>> programs in my Xp missing dwmapi.dll while there's no dwmapi.dll in my
>> system. It looks like the dll is related to vista desktop capability.
>>
>> Is it ok not having dependent dll? If so, why is it called dependent?
>> Sometimes, I couldn't start an application because some of dependent
>> dlls were missing. Does this difference depends on dependency depth?
>
> If I recall correctly, depends can spot dynamically loaded DLLs,
No. Dynamically loaded DLLs are those loaded with LoadLibrary(Ex) and
GetModule calls, and depends.exe doesn't look for these.
> not just those that are statically linked.
Well, rather exactly those. There are still two kinds of statically linked
DLLs, those loaded when the dynamic linker traverses the static imports, and
delayed-loaded DLL which are explicit listed as such. dwmapi.dll belongs to
the latter. Especially since depends.exe really explicitly declares it as
delay-loaded.
|