c++ - Identify whether a dll is built in debug or release with python -
is there way determine whether dll built in ms visual studio 2005 (c++) compiled in debug or in release with python?
i know vs able load dll , show manifest metadata stores information. python module able well?
another option identify dll's dependencies on other dlls , debug-only ones e.g.: msvcr80d.dll, if possible.
pefile can parse pe executable. can find usage examples on project's page.
regarding second part of question retrieve list of dll's dependencies (taken examples):
import pefile path_to_dll = r"path_to_your_dll" pe = pefile.pe(path_to_dll, fast_load=true) # if pe file loaded using fast_load=true argument, need parse data directories: pe.parse_data_directories() entry in pe.directory_entry_import: print entry.dll
in case got following output: kernel32.dll, msvcp80d.dll, msvcr80d.dll, advapi32.dll.
Comments
Post a Comment