[python-win32] Dereferencing lParam pointer

Mark Hammond skippy.hammond at gmail.com
Thu Feb 25 03:03:59 CET 2010


On 25/02/2010 10:01 AM, Tim Roberts wrote:
>> but I am not sure. Is there a way to get the array/list?
>
> You will have to use a package like ctypes to do that.  Something like this:
>
> lst = ctypes.cast(lParam, ctypes.POINTER(ctypes.c_int))
> print lst[0]
> print lst[1]

Or use something like win32gui.PyGetMemory and the struct module (same 
result, different modules)

HTH,

Mark


More information about the python-win32 mailing list