mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Change def of OBJECT_ATTRIBUTES struct to handle remotectypes (#51)
This commit is contained in:
@@ -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)
|
||||
# .contents allow compatibility with remotectypes
|
||||
return """<{0} ObjectName="{1}">""".format(type(self).__name__, self.ObjectName.contents.str)
|
||||
@@ -21374,9 +21374,9 @@ _OVERLAPPED
|
||||
:class:`ULONG_PTR`
|
||||
|
||||
|
||||
.. attribute:: Pointer
|
||||
.. attribute:: _ANON_OVERLAPPED_DUMMYUNIONNAME
|
||||
|
||||
:class:`PVOID`
|
||||
:class:`_ANON__OVERLAPPED_SUB_UNION_1`
|
||||
|
||||
|
||||
.. attribute:: hEvent
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user