How to check if a file is a DLL?

Posted by PierreBdR on Stack Overflow See other posts from Stack Overflow or by PierreBdR
Published on 2009-11-25T18:23:39Z Indexed on 2010/03/29 23:33 UTC
Read the original article Hit count: 339

Filed under:
|
|
|
|

Given a file, I want to check if this is a DLL, or a shared object (Linux) or a dylib (Mac OS X), or something different. My main interest is differentiating executable and DLL on Linux and Mac OS X. For windows, the extension should be enough for my problem.

I already checked that the magic number technique doesn't work for Linux as executable and shared objects both have the same number.

© Stack Overflow or respective owner

Related posts about c++

Related posts about dll