Skip to content

hkb_editor.external.reload.memory

MemoryOperations

Low-level memory operations wrapper for Windows API calls.

allocate_memory staticmethod

allocate_memory(handle: int, size: int, protect: int) -> int

Allocate memory in the target process.

close_handle staticmethod

close_handle(handle: int) -> bool

Close a Windows handle.

create_remote_thread staticmethod

create_remote_thread(handle: int, start_address: int) -> int

Create and start a thread in the target process.

free_memory staticmethod

free_memory(handle: int, address: int, size: int) -> bool

Free allocated memory in the target process.

read_bytes staticmethod

read_bytes(handle: int, address: int, length: int) -> bytes

Read raw bytes from process memory.

read_int64 staticmethod

read_int64(handle: int, address: int) -> int

Read a 64-bit integer from process memory.

read_uint32 staticmethod

read_uint32(handle: int, address: int) -> int

Read a 32-bit unsigned integer from process memory.

wait_for_thread staticmethod

wait_for_thread(handle: int, timeout: int = 30000) -> int

Wait for a thread to complete with specified timeout.

write_bytes staticmethod

write_bytes(handle: int, address: int, data: bytes) -> bool

Write raw bytes to process memory.

write_int64 staticmethod

write_int64(handle: int, address: int, value: int) -> bool

Write a 64-bit integer to process memory.

write_int8 staticmethod

write_int8(handle: int, address: int, value: int) -> bool

Write an 8-bit integer to process memory.