@@ -1902,7 +1902,8 @@ class _ATTACH_VIRTUAL_DISK_PARAMETERS(Structure):
19021902PATTACH_VIRTUAL_DISK_PARAMETERS = POINTER(_ATTACH_VIRTUAL_DISK_PARAMETERS)
19031903
19041904# Self referencing struct tricks
1905- class _INTERNET_BUFFERSA(Structure): pass
1905+ class _INTERNET_BUFFERSA(Structure):
1906+ pass
19061907INTERNET_BUFFERSA = _INTERNET_BUFFERSA
19071908LPINTERNET_BUFFERSA = POINTER(_INTERNET_BUFFERSA)
19081909_INTERNET_BUFFERSA._fields_ = [
@@ -1919,7 +1920,8 @@ class _INTERNET_BUFFERSA(Structure): pass
19191920]
19201921
19211922# Self referencing struct tricks
1922- class _INTERNET_BUFFERSW(Structure): pass
1923+ class _INTERNET_BUFFERSW(Structure):
1924+ pass
19231925INTERNET_BUFFERSW = _INTERNET_BUFFERSW
19241926LPINTERNET_BUFFERSW = POINTER(_INTERNET_BUFFERSW)
19251927_INTERNET_BUFFERSW._fields_ = [
@@ -2453,7 +2455,8 @@ class _IP_INTERFACE_INFO(Structure):
24532455PIP_INTERFACE_INFO = POINTER(_IP_INTERFACE_INFO)
24542456
24552457# Self referencing struct tricks
2456- class _DNS_CACHE_ENTRY(Structure): pass
2458+ class _DNS_CACHE_ENTRY(Structure):
2459+ pass
24572460DNS_CACHE_ENTRY = _DNS_CACHE_ENTRY
24582461PDNS_CACHE_ENTRY = POINTER(_DNS_CACHE_ENTRY)
24592462_DNS_CACHE_ENTRY._fields_ = [
@@ -2982,7 +2985,9 @@ class _ANON__DNSRECORDA_SUB_UNION_2(Union):
29822985 ]
29832986
29842987# Self referencing struct tricks
2985- class _DnsRecordA(Structure): pass
2988+ class _DnsRecordA(Structure):
2989+ _anonymous_ = ("Flags","Data")
2990+
29862991DNS_RECORDA = _DnsRecordA
29872992PDNS_RECORDA = POINTER(_DnsRecordA)
29882993_DnsRecordA._fields_ = [
@@ -3092,7 +3097,9 @@ class _ANON__DNSRECORDW_SUB_UNION_2(Union):
30923097 ]
30933098
30943099# Self referencing struct tricks
3095- class _DnsRecordW(Structure): pass
3100+ class _DnsRecordW(Structure):
3101+ _anonymous_ = ("Flags","Data")
3102+
30963103DNS_RECORDW = _DnsRecordW
30973104PDNS_RECORDW = POINTER(_DnsRecordW)
30983105_DnsRecordW._fields_ = [
@@ -3171,7 +3178,8 @@ class IP_ADDRESS_STRING(Structure):
31713178PIP_MASK_STRING = POINTER(IP_ADDRESS_STRING)
31723179
31733180# Self referencing struct tricks
3174- class _IP_ADDR_STRING(Structure): pass
3181+ class _IP_ADDR_STRING(Structure):
3182+ pass
31753183IP_ADDR_STRING = _IP_ADDR_STRING
31763184PIP_ADDR_STRING = POINTER(_IP_ADDR_STRING)
31773185_IP_ADDR_STRING._fields_ = [
@@ -3182,7 +3190,8 @@ class _IP_ADDR_STRING(Structure): pass
31823190]
31833191
31843192# Self referencing struct tricks
3185- class _IP_ADAPTER_INFO(Structure): pass
3193+ class _IP_ADAPTER_INFO(Structure):
3194+ pass
31863195IP_ADAPTER_INFO = _IP_ADAPTER_INFO
31873196PIP_ADAPTER_INFO = POINTER(_IP_ADAPTER_INFO)
31883197_IP_ADAPTER_INFO._fields_ = [
@@ -3877,7 +3886,8 @@ class _SHFILEOPSTRUCTA(Structure):
38773886SHFILEOPSTRUCTA = _SHFILEOPSTRUCTA
38783887
38793888# Self referencing struct tricks
3880- class _LIST_ENTRY(Structure): pass
3889+ class _LIST_ENTRY(Structure):
3890+ pass
38813891LIST_ENTRY = _LIST_ENTRY
38823892PLIST_ENTRY = POINTER(_LIST_ENTRY)
38833893PRLIST_ENTRY = POINTER(_LIST_ENTRY)
@@ -4917,23 +4927,31 @@ class _PEB(Structure):
49174927PPEB = POINTER(_PEB)
49184928
49194929# Self referencing struct tricks
4920- class _EXCEPTION_REGISTRATION_RECORD(Structure): pass
4930+ class _EXCEPTION_REGISTRATION_RECORD(Structure):
4931+ pass
49214932
49224933_EXCEPTION_REGISTRATION_RECORD._fields_ = [
49234934 ("Next", POINTER(_EXCEPTION_REGISTRATION_RECORD)),
49244935 ("Handler", PVOID),
49254936]
49264937
4938+ class _ANON__NT_TIB_SUB_UNION_1(Union):
4939+ _fields_ = [
4940+ ("FiberData", PVOID),
4941+ ("Version", ULONG),
4942+ ]
4943+
49274944# Self referencing struct tricks
4928- class _NT_TIB(Structure): pass
4945+ class _NT_TIB(Structure):
4946+ _anonymous_ = ("anon_01",)
49294947
4948+ NT_TIB = _NT_TIB
49304949_NT_TIB._fields_ = [
49314950 ("ExceptionList", POINTER(_EXCEPTION_REGISTRATION_RECORD)),
49324951 ("StackBase", PVOID),
49334952 ("StackLimit", PVOID),
49344953 ("SubSystemTib", PVOID),
4935- ("FiberData", PVOID),
4936- ("Version", ULONG),
4954+ ("anon_01", _ANON__NT_TIB_SUB_UNION_1),
49374955 ("ArbitraryUserPointer", PVOID),
49384956 ("Self", POINTER(_NT_TIB)),
49394957]
@@ -6555,7 +6573,8 @@ class _OSVERSIONINFOEXW(Structure):
65556573RTL_OSVERSIONINFOEXW = _OSVERSIONINFOEXW
65566574
65576575# Self referencing struct tricks
6558- class _EXCEPTION_RECORD(Structure): pass
6576+ class _EXCEPTION_RECORD(Structure):
6577+ pass
65596578EXCEPTION_RECORD = _EXCEPTION_RECORD
65606579PEXCEPTION_RECORD = POINTER(_EXCEPTION_RECORD)
65616580_EXCEPTION_RECORD._fields_ = [
@@ -8753,7 +8772,8 @@ class _CERT_SIMPLE_CHAIN(Structure):
87538772PCERT_SIMPLE_CHAIN = POINTER(_CERT_SIMPLE_CHAIN)
87548773
87558774# Self referencing struct tricks
8756- class _CERT_CHAIN_CONTEXT(Structure): pass
8775+ class _CERT_CHAIN_CONTEXT(Structure):
8776+ pass
87578777CERT_CHAIN_CONTEXT = _CERT_CHAIN_CONTEXT
87588778PCCERT_CHAIN_CONTEXT = POINTER(_CERT_CHAIN_CONTEXT)
87598779PCERT_CHAIN_CONTEXT = POINTER(_CERT_CHAIN_CONTEXT)
@@ -11118,7 +11138,9 @@ class _ANON__TRUSTEE_A_SUB_UNION_1(Union):
1111811138 ]
1111911139
1112011140# Self referencing struct tricks
11121- class _TRUSTEE_A(Structure): pass
11141+ class _TRUSTEE_A(Structure):
11142+ _anonymous_ = ("anon_01",)
11143+
1112211144PTRUSTEEA = POINTER(_TRUSTEE_A)
1112311145PTRUSTEE_A = POINTER(_TRUSTEE_A)
1112411146TRUSTEEA = _TRUSTEE_A
@@ -11152,7 +11174,9 @@ class _ANON__TRUSTEE_W_SUB_UNION_1(Union):
1115211174 ]
1115311175
1115411176# Self referencing struct tricks
11155- class _TRUSTEE_W(Structure): pass
11177+ class _TRUSTEE_W(Structure):
11178+ _anonymous_ = ("anon_01",)
11179+
1115611180PTRUSTEEW = POINTER(_TRUSTEE_W)
1115711181PTRUSTEE_W = POINTER(_TRUSTEE_W)
1115811182TRUSTEEW = _TRUSTEE_W
@@ -12564,7 +12588,8 @@ class sockaddr_in(Structure):
1256412588
1256512589
1256612590# Self referencing struct tricks
12567- class addrinfoW(Structure): pass
12591+ class addrinfoW(Structure):
12592+ pass
1256812593ADDRINFOW = addrinfoW
1256912594PADDRINFOW = POINTER(addrinfoW)
1257012595addrinfoW._fields_ = [
@@ -12639,7 +12664,8 @@ class _WSAPROTOCOL_INFOW(Structure):
1263912664WSAPROTOCOL_INFOW = _WSAPROTOCOL_INFOW
1264012665
1264112666# Self referencing struct tricks
12642- class addrinfo(Structure): pass
12667+ class addrinfo(Structure):
12668+ pass
1264312669ADDRINFOA = addrinfo
1264412670PADDRINFOA = POINTER(addrinfo)
1264512671addrinfo._fields_ = [
0 commit comments