Indirect Memory Addressing
c_g at cogeco.ca
Fri Jun 4 04:16:12 CEST 2004
It may be overkill, but I've used ctypes for this sort of thing with great
Larry Bates wrote:
> I need to call a function in a vendor supplied
> Windows .DLL file that returns an address that
> points to a list of longs. I am able to call
> the function and get back the pointer (by
> using membuf). Now I need to know how to get
> to the data that is pointed to by the address.
> from dynwin.windll import membuf
> . Make call to my .DLL function here
> address contains memory address that points
> to the first entry in my list of longs, but
> I don't know how to read the contents of that
> address (something like peek).
> Thanks in advance,
> Larry Bates
> Syscon, Inc.
More information about the Python-list