How can I test a Windows DLL file to determine if it is 32 bit or 64 bit? [duplicate]

I’d like to write a test script or program that asserts that all DLL files in a given directory are of a particular build type.

I would use this as a sanity check at the end of a build process on an SDK to make sure that the 64-bit version hasn’t somehow got some 32-bit DLL files in it and vice versa.

Is there an easy way to look at a DLL file and determine its type?

The solution should work on both xp32 and xp64.

5 Answers
5

Leave a Comment