58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
#pragma once
|
|
|
|
extern "C"
|
|
{
|
|
extern ulong __fastcall sc_asm_alloc_virtual_memory(
|
|
HANDLE ProcessHandle,
|
|
PVOID* BaseAddress,
|
|
ULONG_PTR ZeroBits,
|
|
PSIZE_T RegionSize,
|
|
ULONG AllocationType,
|
|
ULONG Protect
|
|
);
|
|
|
|
extern ulong __fastcall sc_asm_query_virtual_memory(
|
|
HANDLE ProcessHandle,
|
|
PVOID BaseAddress,
|
|
k::MEMORY_INFORMATION_CLASS MemoryInformationClass,
|
|
PVOID MemoryInformation,
|
|
SIZE_T MemoryInformationLength,
|
|
PSIZE_T ReturnLength
|
|
);
|
|
|
|
extern ulong __fastcall sc_asm_delay_execution(
|
|
BOOLEAN Alertable,
|
|
PLARGE_INTEGER DelayInterval
|
|
);
|
|
|
|
extern ulong __fastcall sc_asm_get_context_thread(
|
|
HANDLE Thread,
|
|
PCONTEXT Context
|
|
);
|
|
|
|
extern ulong __fastcall sc_asm_open_file(
|
|
PHANDLE FileHandle,
|
|
ACCESS_MASK DesiredAccess,
|
|
POBJECT_ATTRIBUTES ObjectAttributes,
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
ULONG ShareAccess,
|
|
ULONG OpenOptions
|
|
);
|
|
|
|
extern ulong __fastcall sc_asm_read_file(
|
|
HANDLE FileHandle,
|
|
HANDLE Event,
|
|
PIO_APC_ROUTINE ApcRoutine,
|
|
PVOID ApcContext,
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
PVOID Buffer,
|
|
ULONG Length,
|
|
PLARGE_INTEGER ByteOffset,
|
|
PULONG Key
|
|
);
|
|
|
|
extern void __fastcall asm_capture_context(
|
|
PCONTEXT Context
|
|
);
|
|
}
|