title: How do I programmatically get the version of a DLL or EXE file?
body: <p>I need to get the product version and file version for a DLL or EXE file using Win32 native APIs in C or C++. I'm <em>not</em> looking for the Windows version, but the version numbers that you see by right-clicking on a DLL file, selecting "Properties", then looking at the "Details" tab. This is usually a four-part dotted version number x.x.x.x.</p>