Guest User

imports :)

a guest
Jun 4th, 2022
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1.         #region Imports
  2.  
  3.  
  4.         [DllImport("kernel32.dll")]
  5.  
  6.         static extern IntPtr OpenProcess(uint dwDesiredAccess, int bInheritHandle, int dwProcessId);
  7.  
  8.         [DllImport("kernel32.dll")]
  9.  
  10.         static extern int CloseHandle(IntPtr hObject);
  11.  
  12.         [DllImport("kernel32.dll")]
  13.  
  14.         static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddres, int dwSize, uint flAllocationType, uint flProtect);
  15.  
  16.         [DllImport("kernel32.dll")]
  17.         static extern int WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] buffer, int size, int lpNumberOfBytesWritten);
  18.  
  19.         [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]
  20.         static extern bool VirtualFreeEx(IntPtr hProcess, IntPtr lpAddress, int dwSize, int dwFreeType);
  21.  
  22.         #endregion
Advertisement
Add Comment
Please, Sign In to add comment