How about a DLL that you can call to calculate all this information for you and pass back the answer as an array of CStrings?
PE Format DLL can do this for you. Supplied with source code, no GPL restrictions. PE File Explorer is a GUI app that uses the DLL, also supplied with source (no GPL).