Enumerating STRING-TABLE in dll

Thomas Heller thomas.heller at ion-tof.com
Wed Jan 30 04:40:21 EST 2002


"Nikolai Kirsebom" <nikolai.kirsebom at siemens.no> wrote in message news:3c57b9f8.173344285 at news.mch.sni.de...
> On Wed, 30 Jan 2002 01:19:03 GMT, "Neil Hodgson"
> <nhodgson at bigpond.net.au> wrote:
>
> >   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
> >
> Thanks,
> But could you please explain what / how the 'group of 16' is handled.
>

I have some code which *builds* string tables, maybe this can help you.

It is at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/py2exe/py2exe/py2exe/resources/StringTables.py

HTH,

Thomas





More information about the Python-list mailing list