Quick question about ctypes syntax, as documentation for Unions isn\'t clear for a beginner like me.
Say I want to implement an INPUT structure (see here):
Your Structure syntax isn't valid:
AttributeError: '_fields_' must be a sequence of pairs
I believe you want to use the anonymous attribute in your ctypes.Structure. It looks like the ctypes documentation creates a TYPEDESC structure (which is very similar in construction to the tagINPUT).
Also note that you'll have to define DWORD as a base type for your platform.