Enumerating STRING-TABLE in dll

Neil Hodgson nhodgson at bigpond.net.au
Wed Jan 30 02:19:03 CET 2002


Nikolai Kirsebom:.

> Does anyone know how I can load all the definitions in the
> string-table in a DLL.  I'll use it to load the string-tables in two
> (or more) dlls and show the content in a table (grid) - so that one
> quickly can see 'mismatch'.

   You need to get a hmodule for the DLL, then use
win32api.EnumResourceNames, and win32api.LoadResource. IIRC strings are
blocked into groups of upto 16 strings in each resource rather than with one
resource per string.

   Neil





More information about the Python-list mailing list