There are 2 types of library (static/import). How can I get its type other than the name (the type information could be included in the file name such as libcmt.li开发者_如何转开发b, but this could not be the case for customer library).
Here's a copy of the Microsoft document specifing formats for both static and import .lib files:
http://kishorekumar.net/pecoff_v8.1.htm
Another approach might be to take a couple of libraries, look at the header bytes with "dumpbin" and your favorite hex editor. It should be pretty easy to identify a .lib file from the "magic numbers" in the header.
精彩评论