Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------------------------------------
- Win32 -> Lua functions ---------------------------------------------------
- --------------------------------------------------------------------------
- Sleep -> Sleep(ms)
- CloseHandle -> CloseHandle(handle) [returns ERRCODE]
- FindWindowA -> FindWindow(title, class) [returns HWND]
- GetWindowThreadProcessId -> GetProcessId(handle) [returns PID]
- OpenProcess -> OpenProcess(access, pid) [returns HANDLE]
- TerminateProcess -> TerminateProcess(process, exitCode) [return ERRCDE]
- VirtualAllocEx -> VirtAllocMem(process, addr, size, type, protect) [returns ADDRESS,ERRCODE]
- VirtualFreeEx -> VirtFreeMem(process, addr, size, type) [returns ERRCODE]
- VirtualProtectEx -> VirtProtectMem(process, addr, size, newProtect) [returns oldProtect,ERRCODE]
- VirtualQueryEx -> VirtQueryMem(process, addr) [returns baseAddr,allocBase,allocProtect,regionSize,state,protect,type]
- ReadProcessMemory -> ReadProcMem(process, addr, size) [returns buff,bytesRead,ERRCODE]
- WriteProcessMemory -> WriteProcMem(process, addr, buff, size) [returns bytesWritten,ERRCODE]
- --------------------------------------------------------------------------
- Win32 -> Lua globals -----------------------------------------------------
- --------------------------------------------------------------------------
- PROCESS_ALL_ACCESS -> UNKNOWN
- PROCESS_CREATE_PROCESS -> 0x0080
- PROCESS_CREATE_THREAD -> 0x0002
- PROCESS_DUP_HANDLE -> 0x0040
- PROCESS_QUERY_INFORMATION -> 0x0400
- PROCESS_SET_INFORMATION -> 0x0200
- PROCESS_SET_QUOTA -> 0x0100
- PROCESS_SUSPEND_RESUME -> 0x0800
- PROCESS_TERMINATE -> 0x0001
- PROCESS_VM_OPERATION -> 0x0008
- PROCESS_VM_READ -> 0x0010
- PROCESS_VM_WRITE -> 0x0020
- SYNCHRONIZE -> 0x00100000L
- MEM_COMMIT -> 0x1000
- MEM_RESERVE -> 0x2000
- MEM_RESET -> 0x80000
- MEM_LARGE_PAGES -> 0x20000000
- MEM_PHYSICAL -> 0x400000
- MEM_TOP_DOWN -> 0x100000
- PAGE_EXECUTE -> 0x10
- PAGE_EXECUTE_READ -> 0x20
- PAGE_EXECUTE_READWRITE -> 0x40
- PAGE_EXECUTE_WRITECOPY -> 0x80
- PAGE_NOACCESS -> 0x01
- PAGE_READONLY -> 0x02
- PAGE_READWRITE -> 0x04
- PAGE_WRITECOPY -> 0x08
- PAGE_GAURD -> 0x100
- PAGE_NOCACHE -> 0x200
- PAGE_WRITECOMBINE -> 0x400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement