Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Imports
- [DllImport("kernel32.dll")]
- static extern IntPtr OpenProcess(uint dwDesiredAccess, int bInheritHandle, int dwProcessId);
- [DllImport("kernel32.dll")]
- static extern int CloseHandle(IntPtr hObject);
- [DllImport("kernel32.dll")]
- static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddres, int dwSize, uint flAllocationType, uint flProtect);
- [DllImport("kernel32.dll")]
- static extern int WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] buffer, int size, int lpNumberOfBytesWritten);
- [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]
- static extern bool VirtualFreeEx(IntPtr hProcess, IntPtr lpAddress, int dwSize, int dwFreeType);
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment