A function called from a DLL returns a pointer to the structure.
How to get this structure and its data in Python?
from ctypes import * # give location of dll wsd = cdll.LoadLibrary(".//CoreLib.dll") class wGuiEvent(Structure): _fields_ = [ ("id", c_int32), ("name", c_uint32), ("event", c_uint32), ] GUIEvent = wGuiEvent() ??? GUIEvent = wsd.wGuiReadEvent() ??? GUIEvent.event ??? ???