Advertisement
captmicro

Unknown

Dec 28th, 2010
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.29 KB | None | 0 0
  1. --------------------------------------------------------------------------
  2. Win32 -> Lua functions ---------------------------------------------------
  3. --------------------------------------------------------------------------
  4. Sleep                           -> Sleep(ms)
  5. CloseHandle                     -> CloseHandle(handle) [returns ERRCODE]
  6.  
  7. FindWindowA                     -> FindWindow(title, class) [returns HWND]
  8. GetWindowThreadProcessId        -> GetProcessId(handle) [returns PID]
  9. OpenProcess                     -> OpenProcess(access, pid) [returns HANDLE]
  10. TerminateProcess                -> TerminateProcess(process, exitCode) [return ERRCDE]
  11.  
  12. VirtualAllocEx                  -> VirtAllocMem(process, addr, size, type, protect) [returns ADDRESS,ERRCODE]
  13. VirtualFreeEx                   -> VirtFreeMem(process, addr, size, type) [returns ERRCODE]
  14. VirtualProtectEx                -> VirtProtectMem(process, addr, size, newProtect) [returns oldProtect,ERRCODE]
  15. VirtualQueryEx                  -> VirtQueryMem(process, addr) [returns baseAddr,allocBase,allocProtect,regionSize,state,protect,type]
  16.  
  17. ReadProcessMemory               -> ReadProcMem(process, addr, size) [returns buff,bytesRead,ERRCODE]
  18. WriteProcessMemory              -> WriteProcMem(process, addr, buff, size) [returns bytesWritten,ERRCODE]
  19.  
  20. --------------------------------------------------------------------------
  21. Win32 -> Lua globals -----------------------------------------------------
  22. --------------------------------------------------------------------------
  23. PROCESS_ALL_ACCESS              -> UNKNOWN
  24. PROCESS_CREATE_PROCESS          -> 0x0080
  25. PROCESS_CREATE_THREAD           -> 0x0002
  26. PROCESS_DUP_HANDLE              -> 0x0040
  27. PROCESS_QUERY_INFORMATION       -> 0x0400
  28. PROCESS_SET_INFORMATION         -> 0x0200
  29. PROCESS_SET_QUOTA               -> 0x0100
  30. PROCESS_SUSPEND_RESUME          -> 0x0800
  31. PROCESS_TERMINATE               -> 0x0001
  32. PROCESS_VM_OPERATION            -> 0x0008
  33. PROCESS_VM_READ                 -> 0x0010
  34. PROCESS_VM_WRITE                -> 0x0020
  35. SYNCHRONIZE                     -> 0x00100000L
  36.  
  37. MEM_COMMIT                      -> 0x1000
  38. MEM_RESERVE                     -> 0x2000
  39. MEM_RESET                       -> 0x80000
  40. MEM_LARGE_PAGES                 -> 0x20000000
  41. MEM_PHYSICAL                    -> 0x400000
  42. MEM_TOP_DOWN                    -> 0x100000
  43.  
  44. PAGE_EXECUTE                    -> 0x10
  45. PAGE_EXECUTE_READ               -> 0x20
  46. PAGE_EXECUTE_READWRITE          -> 0x40
  47. PAGE_EXECUTE_WRITECOPY          -> 0x80
  48. PAGE_NOACCESS                   -> 0x01
  49. PAGE_READONLY                   -> 0x02
  50. PAGE_READWRITE                  -> 0x04
  51. PAGE_WRITECOPY                  -> 0x08
  52. PAGE_GAURD                      -> 0x100
  53. PAGE_NOCACHE                    -> 0x200
  54. PAGE_WRITECOMBINE               -> 0x400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement