ctypes pointer to pointer

Podi podi.ex at gmail.com
Thu Sep 28 18:45:51 CEST 2006

Thanks for the help. I've figured it out. BTW, DLL_API is defined as

#define DLL_API __declspec(dllexport)
#define DLL_API __declspec(dllimport)

size = c_int()
data = c_char_p('\0' * 8)
mydll = cdll.mydll # Use cdll instead of windll to avoid warnings
status = mydll.dll_foo(byref(data), byref(size))

More information about the Python-list mailing list