How to programmatically check C++ DLL files and C# DLL files for references to debug DLLS to automate a testing procedure

后端 未结 2 562
青春惊慌失措
青春惊慌失措 2021-01-13 08:35

I have run into this issue too many times and need this to be an automated approach:

I have multiple DLL files that are constantly being built/changed that multiple

2条回答
  •  一生所求
    2021-01-13 09:06

    Use GetModuleHandle to check for the presence of a DLL with the given name. If you want to know if it's a debug version or not, then you need to compile that information into the EXE and check for it somehow. "Debug" vs. "Release" is not a concept built-in to PE format; it's just a set of compile options. Many people put a flag in the version information to indicate whether it's an internal vs. public release.

    P/Invoke reference for GetModuleHandle

提交回复
热议问题