(archbits: int)
| 922 | |
| 923 | |
| 924 | def make_ldr_data(archbits: int): |
| 925 | native_type = struct.get_native_type(archbits) |
| 926 | Struct = struct.get_aligned_struct(archbits) |
| 927 | |
| 928 | ListEntry = make_list_entry(archbits) |
| 929 | |
| 930 | class PEB_LDR_DATA(Struct): |
| 931 | _fields_ = ( |
| 932 | ('Length', ctypes.c_uint32), |
| 933 | ('Initialized', ctypes.c_uint32), |
| 934 | ('SsHandle', native_type), |
| 935 | ('InLoadOrderModuleList', ListEntry), |
| 936 | ('InMemoryOrderModuleList', ListEntry), |
| 937 | ('InInitializationOrderModuleList', ListEntry), |
| 938 | ('EntryInProgress', native_type), |
| 939 | ('ShutdownInProgress', native_type), |
| 940 | ('selfShutdownThreadId', native_type) |
| 941 | ) |
| 942 | |
| 943 | return PEB_LDR_DATA |
| 944 | |
| 945 | |
| 946 | def make_ldr_data_table_entry(archbits: int): |
no test coverage detected