How can Find all dependencies of an application?
In a Portable-Exe ,there is possibilities to find the imported section ,and also all imported dll names (using import descriptor).Here Ex, One application Exe has many imported dlls(kernel32,advapi,user,comctl32....etc),Now i want to find all dependencies in that app exe(imported dlls)..give me the logic using recursive function calling..
Here ,Ex notepad.exe ,supposed having two dlls (advapi32,user32) ,i can开发者_Python百科 fetch those dlls details ,i want to know imported dlls of advapi and user32 ....by the way of all dependencies...can u give the logic only ,its very helpful to me ....thanks
Dependency Walker can do this for you: It displays a tree of all dependencies and their dependencies.
alt text http://img526.imageshack.us/img526/4175/depnotepad.png
Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules.
For More info - depends.exe
精彩评论