diff --git a/ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py b/ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py index f708c8f..694d338 100644 --- a/ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py +++ b/ctypes_generation/extended_structs/_OBJECT_ATTRIBUTES.py @@ -13,4 +13,5 @@ class _OBJECT_ATTRIBUTES(_OBJECT_ATTRIBUTES): def __repr__(self): if not self.ObjectName: return super(_OBJECT_ATTRIBUTES, self).__repr__() - return """<{0} ObjectName="{1}">""".format(type(self).__name__, self.ObjectName[0].str) \ No newline at end of file + # .contents allow compatibility with remotectypes + return """<{0} ObjectName="{1}">""".format(type(self).__name__, self.ObjectName.contents.str) \ No newline at end of file diff --git a/docs/source/winstructs_generated.rst b/docs/source/winstructs_generated.rst index 8d6901d..fc18ee5 100644 --- a/docs/source/winstructs_generated.rst +++ b/docs/source/winstructs_generated.rst @@ -21374,9 +21374,9 @@ _OVERLAPPED :class:`ULONG_PTR` - .. attribute:: Pointer + .. attribute:: _ANON_OVERLAPPED_DUMMYUNIONNAME - :class:`PVOID` + :class:`_ANON__OVERLAPPED_SUB_UNION_1` .. attribute:: hEvent diff --git a/windows/generated_def/winstructs.py b/windows/generated_def/winstructs.py index 18317b5..ea0faeb 100644 --- a/windows/generated_def/winstructs.py +++ b/windows/generated_def/winstructs.py @@ -5947,7 +5947,8 @@ class _OBJECT_ATTRIBUTES(_OBJECT_ATTRIBUTES): def __repr__(self): if not self.ObjectName: return super(_OBJECT_ATTRIBUTES, self).__repr__() - return """<{0} ObjectName="{1}">""".format(type(self).__name__, self.ObjectName[0].str) + # .contents allow compatibility with remotectypes + return """<{0} ObjectName="{1}">""".format(type(self).__name__, self.ObjectName.contents.str) POBJECT_ATTRIBUTES = POINTER(_OBJECT_ATTRIBUTES) OBJECT_ATTRIBUTES = _OBJECT_ATTRIBUTES class _TMP_UNION_IO_STATUS_BLOCK(Union):