DLL stringtable

  • Thread starter Thread starter Tom Bryant
  • Start date Start date
T

Tom Bryant

Hi,
I have to read string out of an old dll. How can I open it and access
the stringtables with C# ?
 
If you mean old as in 16-bit (NE executable) then take a look at the
previous post I made:

"Hi -

Take a look at:

http://benoit.papillault.free.fr/c/disc2/exefmt.txt
http://www.itee.uq.edu.au/~csmweb/decompilation/new_exe.html

They appear to document the MZ/NE executable format.

1. Open a binary file to the executable/dll.
2. Find the NE header by looking at the MZ header.
3. Locate the resource table segment in the NE header.
4. You should then be able to iterate over the resources one by one.

Haven't completed any work like that for a while and certainly not in .NET
but it should be fairly trivial once you get into it.

Looking in the Platform SDK in WINNT.H; if you search for MZ below that it
defines the structures referenced in the above documents."

HTH

- Andy
 
Back
Top