@@ -1383,17 +1383,19 @@ def make_system_basic_info(archbits: int):
13831383 pointer_type = native_type
13841384
13851385 class SYSTEM_BASIC_INFORMATION (Struct ):
1386- ('Reserved' , ctypes .c_uint32 ),
1387- ('TimerResolution' , ctypes .c_uint32 ),
1388- ('PageSize' , ctypes .c_uint32 ),
1389- ('NumberOfPhysicalPages' , ctypes .c_uint32 ),
1390- ('LowestPhysicalPageNumber' , ctypes .c_uint32 ),
1391- ('HighestPhysicalPageNumber' , ctypes .c_uint32 ),
1392- ('AllocationGranularity' , ctypes .c_uint32 ),
1393- ('MinimumUserModeAddress' , pointer_type ),
1394- ('MaximumUserModeAddress' , pointer_type ),
1395- ('ActiveProcessorsAffinityMask' , pointer_type ),
1396- ('NumberOfProcessors' , ctypes .c_uint8 )
1386+ _fields_ = (
1387+ ('Reserved' , ctypes .c_uint32 ),
1388+ ('TimerResolution' , ctypes .c_uint32 ),
1389+ ('PageSize' , ctypes .c_uint32 ),
1390+ ('NumberOfPhysicalPages' , ctypes .c_uint32 ),
1391+ ('LowestPhysicalPageNumber' , ctypes .c_uint32 ),
1392+ ('HighestPhysicalPageNumber' , ctypes .c_uint32 ),
1393+ ('AllocationGranularity' , ctypes .c_uint32 ),
1394+ ('MinimumUserModeAddress' , pointer_type ),
1395+ ('MaximumUserModeAddress' , pointer_type ),
1396+ ('ActiveProcessorsAffinityMask' , pointer_type ),
1397+ ('NumberOfProcessors' , ctypes .c_uint8 )
1398+ )
13971399
13981400 return SYSTEM_BASIC_INFORMATION
13991401
@@ -1406,11 +1408,13 @@ def make_hostent(archbits: int):
14061408 pointer_type = native_type
14071409
14081410 class HOSTENT (Struct ):
1409- ('h_name' , pointer_type ),
1410- ('h_aliases' , pointer_type ),
1411- ('h_addrtype' , ctypes .c_int16 ),
1412- ('h_length' , ctypes .c_int16 ),
1413- ('h_addr_list' , pointer_type ),
1411+ _fields_ = (
1412+ ('h_name' , pointer_type ),
1413+ ('h_aliases' , pointer_type ),
1414+ ('h_addrtype' , ctypes .c_int16 ),
1415+ ('h_length' , ctypes .c_int16 ),
1416+ ('h_addr_list' , pointer_type ),
1417+ )
14141418
14151419 return HOSTENT
14161420
0 commit comments