Is there a straightforward way to examine a Delphi BPL file for 32/64 bitness? I want to be able to do this outside of attempting to load the BPL itself - e.g. open the BPL as a binary file and read a specific address in the contents of the file that indicates whether it's compiled for 32-bit or 64-bit.
The referenced answer is for Python, not Delphi, and not everyone is aware that BPLs are actually just an extended for of DLLs.
As we are speaking of BPL files here (which basically are DLLs following a certain convention), one can simply compare some Delphi BPLs coming with every installation and are located in separate subfolders of the redist folder.
At position $50 there is an ASCI string containing This program must be run under Win32 and This program must be run under Win64 respectively.