0

I need to specifically filter all user imported dll's. DIA SDK gives all modules under SymTagCompiland which includes all kernel and other imports those are not explicitly linked.

I only need those dependent Dll's(modules) which are explicitly linked at runtime or at compile time(mentioned in Linker's Input area of project Configuration).

How can I filter this?

Regards, Usman

Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
Usman
  • 77
  • 2
  • 9

1 Answers1

0

Why do you need DIA for that? You can use EnumProcessModules if process is loaded.

Or you can look into PE itself. This article explains it.

You may need to hook into LoadLibrary and/or DllMain to get if some DLL is dynamically loaded. Check this article for hooking.

Unless you are writing a debugger, DIA or WaitForDebugEvent-ContinueDebugEvent is not required.

Ajay
  • 18,086
  • 12
  • 59
  • 105