|
-
October 8th, 2009, 04:41 AM
#1
Verifying if a dll is compiled debug or release mode
Hi There,
I would like to know how it is possible to verify if a dll was compiled with debug information or release using unmanaged windows/c++.
I tried all the ways I could imagine including checking the IMAGE_FILE_HEADER for DEBUG_STRIPPED (that is not of help since debug information is stripped from non-debug builds and debug builds with external .dbg file - what is not necessarily present), checking the debugger path, the existence of the debugger instance, loading the dll and checking the IMAGE_DEBUG_DIRECTORY. No success...
Can somebody tell me how to do this?
A few lines code would be highly appreciated, it must be easy like just loading something (tried PE 0x52 2 bytes but that is the same as DEBUG_STRIPPED) what I have not managed to figure out.
You help would be highly appreciated.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|