in reply to Accessing a DLL File

You can open the DLL-File in binary mode, read the MZ-header (first 64 bytes) unpack the offset of the PE-header from it, seek there, read the PE-header, unpack ...

Do you get the drift? Don't have the SDK here so I can't be precise.

Replies are listed 'Best First'.
Re^2: Accessing a DLL File
by PrimeLord (Pilgrim) on Feb 11, 2005 at 20:47 UTC
    I sort of understand where you are going, but I am confused about a few things. I don't know what the MZ-header and PE-header are. And I don't know what I need to unpack it as. Thanks.
      He's refering to the format of executables (.dll uses the same format as .exe). He's saying you could search the Microsoft site for documentation on the file format and work your way through it to extra the info you need.
        Ah I undrestand now. And I have figured it out. Thanks everyone for their help!