Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 535 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 535 Bytes

x64-syscall

x64 syscall caller in C++.

Usage examples (indexes from Windows 10, build 1803):

ObjectAttributes.Length = sizeof( OBJECT_ATTRIBUTES );
ClientId.UniqueProcess	= HANDLE( 1000 ); // PID

// NtOpenProcess
Syscall( 0x26, &Handle, PROCESS_TERMINATE, &ObjectAttributes, &ClientId );

// NtTerminateProcess
Syscall( 0x2C, Handle );
// NtQuerySystemInformation
const auto Status = Syscall< NTSTATUS >( 0x36, SystemProcessInformation, QueryBuffer.data( ), 
	( ULONG )QueryBuffer.size( ), &RequiredSize );