depends.exe, missing dwmapi.dll
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
depends.exe, missing dwmapi.dll         


Author: TheOne
Date: May 1, 2008 18:30

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?

TIA.

--
Daewon YOON
3 Comments
Re: depends.exe, missing dwmapi.dll         


Author: Grinder
Date: May 1, 2008 19:08

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, not
just those that are statically linked. It does not, though, make
much/any effort to determine the conditions under which those libraries
*will* be loaded. So, it's possible for an application/library to
contain a reference to a DLL without ever actually needing it.
no comments
Re: depends.exe, missing dwmapi.dll         


Author: 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.
no comments
Re: depends.exe, missing dwmapi.dll         


Author: Grinder
Date: May 1, 2008 20:31

Sebastian G. wrote:
> 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.

It does during application profiling, but I do have something confused.
Show full article (1.21Kb)
no comments