mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Fix remaining structs
This commit is contained in:
@@ -51,8 +51,8 @@ union PEB_BITFIELD_UNION
|
||||
|
||||
typedef struct _LIST_ENTRY64
|
||||
{
|
||||
struct _LIST_ENTRY* Flink;
|
||||
struct _LIST_ENTRY* Blink;
|
||||
ULONGLONG Flink;
|
||||
ULONGLONG Blink;
|
||||
} LIST_ENTRY64, *PLIST_ENTRY64, *RESTRICTED_POINTER PRLIST_ENTRY64;
|
||||
|
||||
#endif
|
||||
@@ -187,9 +187,9 @@ typedef struct _API_SET_NAMESPACE
|
||||
|
||||
union PEB_CONTEXT_DATA_UNION64
|
||||
{
|
||||
void* pContextData; // WIN7
|
||||
void* pUnused; // WIN10
|
||||
void* EcCodeBitMap; // WIN11
|
||||
std::uint64_t pContextData; // WIN7
|
||||
std::uint64_t pUnused; // WIN10
|
||||
std::uint64_t EcCodeBitMap; // WIN11
|
||||
};
|
||||
|
||||
union PEB_TRACING_FLAGS_UNION
|
||||
@@ -228,18 +228,18 @@ typedef struct _CPTABLEINFO
|
||||
USHORT TransUniDefaultChar;
|
||||
USHORT DBCSCodePage;
|
||||
UCHAR LeadByte[MAXIMUM_LEADBYTES];
|
||||
USHORT* MultiByteTable;
|
||||
void* WideCharTable;
|
||||
USHORT* DBCSRanges;
|
||||
USHORT* DBCSOffsets;
|
||||
EMULATOR_CAST(uint64_t, USHORT*) MultiByteTable;
|
||||
EMULATOR_CAST(uint64_t, void*) WideCharTable;
|
||||
EMULATOR_CAST(uint64_t, USHORT*) DBCSRanges;
|
||||
EMULATOR_CAST(uint64_t, USHORT*) DBCSOffsets;
|
||||
} CPTABLEINFO, *PCPTABLEINFO;
|
||||
|
||||
typedef struct _NLSTABLEINFO
|
||||
{
|
||||
CPTABLEINFO OemTableInfo;
|
||||
CPTABLEINFO AnsiTableInfo;
|
||||
USHORT* UpperCaseTable;
|
||||
USHORT* LowerCaseTable;
|
||||
EMULATOR_CAST(uint64_t, USHORT*) UpperCaseTable;
|
||||
EMULATOR_CAST(uint64_t, USHORT*) LowerCaseTable;
|
||||
} NLSTABLEINFO, *PNLSTABLEINFO;
|
||||
|
||||
typedef struct _PEB64
|
||||
|
||||
@@ -78,7 +78,7 @@ typedef struct DECLSPEC_ALIGN(16) _EMU_MEMORY_BASIC_INFORMATION64
|
||||
|
||||
typedef struct _MEMORY_IMAGE_INFORMATION64
|
||||
{
|
||||
void* ImageBase;
|
||||
uint64_t ImageBase;
|
||||
std::int64_t SizeOfImage;
|
||||
|
||||
union
|
||||
@@ -98,7 +98,7 @@ typedef struct _MEMORY_IMAGE_INFORMATION64
|
||||
|
||||
typedef struct _MEMORY_REGION_INFORMATION
|
||||
{
|
||||
void* AllocationBase;
|
||||
uint64_t AllocationBase;
|
||||
ULONG AllocationProtect;
|
||||
|
||||
union
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace syscalls
|
||||
const emulator_object<MEMORY_IMAGE_INFORMATION64> info{c.emu, memory_information};
|
||||
|
||||
info.access([&](MEMORY_IMAGE_INFORMATION64& image_info) {
|
||||
image_info.ImageBase = reinterpret_cast<void*>(mod->image_base);
|
||||
image_info.ImageBase = mod->image_base;
|
||||
image_info.SizeOfImage = static_cast<int64_t>(mod->size_of_image);
|
||||
image_info.ImageFlags = 0;
|
||||
});
|
||||
@@ -107,7 +107,7 @@ namespace syscalls
|
||||
info.access([&](MEMORY_REGION_INFORMATION64& image_info) {
|
||||
memset(&image_info, 0, sizeof(image_info));
|
||||
|
||||
image_info.AllocationBase = reinterpret_cast<void*>(region_info.allocation_base);
|
||||
image_info.AllocationBase = region_info.allocation_base;
|
||||
image_info.AllocationProtect = map_emulator_to_nt_protection(region_info.initial_permissions);
|
||||
// image_info.PartitionId = 0;
|
||||
image_info.RegionSize = static_cast<int64_t>(region_info.allocation_length);
|
||||
|
||||
Reference in New Issue
Block a user