KingCalzone
Executive
Moderator
A+ Lobbies Team
- Joined
- Oct 22, 2024
- Messages
- 9
- Reaction score
- 2
- Points
- 3
*(QWORD*)Address = 0x0000000000000000;
// Write 8 bytes.
*(DWORD*)Address = 0x00000000;
// Write four bytes.
*(SHORT*)Address = 0x0000;
// Write two bytes.
*(BYTE*)Address = 0x00;
// Write one byte.
*(DWORD*)Address = 0x00, 0x00, 0x00, 0x00;
// Is correct syntax, but it doesn't actually write more than the first value for some reason.
memcpy((VOID*)Address, (VOID*)Source, Size);
// This can write up to 0x7FFFFFFF bytes, depending on what size is passed in.
example:
char examplebytes[] = {
0x12, 0x23, 0x34, 0x56
}
memcpy((void*)0x12345678, examplebytes, sizeof(examplebytes)); // copy examplebytes to address 0x12345678 with the sizeof examplebytes (in this case, 4 bytes)
// Write 8 bytes.
*(DWORD*)Address = 0x00000000;
// Write four bytes.
*(SHORT*)Address = 0x0000;
// Write two bytes.
*(BYTE*)Address = 0x00;
// Write one byte.
*(DWORD*)Address = 0x00, 0x00, 0x00, 0x00;
// Is correct syntax, but it doesn't actually write more than the first value for some reason.
memcpy((VOID*)Address, (VOID*)Source, Size);
// This can write up to 0x7FFFFFFF bytes, depending on what size is passed in.
example:
char examplebytes[] = {
0x12, 0x23, 0x34, 0x56
}
memcpy((void*)0x12345678, examplebytes, sizeof(examplebytes)); // copy examplebytes to address 0x12345678 with the sizeof examplebytes (in this case, 4 bytes)