Advertisement
CroClex

namedpipes

Nov 26th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. // Token: 0x06000010 RID: 16
  2. [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
  3. [return: MarshalAs(UnmanagedType.Bool)]
  4. private static extern bool WaitNamedPipe(string name, int timeout);
  5.  
  6. // Token: 0x06000011 RID: 17
  7. [DllImport("user32.dll", SetLastError = true)]
  8. private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
  9.  
  10. // Token: 0x06000012 RID: 18
  11. [DllImport("user32.dll", SetLastError = true)]
  12. private static extern uint GetWindowThreadProcessId(IntPtr hWnd, out int lpdwProcessId);
  13.  
  14. // Token: 0x06000013 RID: 19
  15. [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
  16. private static extern IntPtr GetForegroundWindow();
  17.  
  18. // Token: 0x0600001C RID: 28
  19. [DllImport("kernel32.dll")]
  20. public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
  21.  
  22. // Token: 0x0600001D RID: 29
  23. [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
  24. public static extern IntPtr GetModuleHandle(string lpModuleName);
  25.  
  26. // Token: 0x0600001E RID: 30
  27. [DllImport("kernel32", CharSet = CharSet.Ansi, SetLastError = true)]
  28. private static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
  29.  
  30. // Token: 0x0600001F RID: 31
  31. [DllImport("kernel32.dll", SetLastError = true)]
  32. private static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, uint dwSize, uint flAllocationType, uint flProtect);
  33.  
  34. // Token: 0x06000020 RID: 32
  35. [DllImport("kernel32.dll", SetLastError = true)]
  36. private static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, uint nSize, out UIntPtr lpNumberOfBytesWritten);
  37.  
  38. // Token: 0x06000021 RID: 33
  39. [DllImport("kernel32.dll")]
  40. private static extern IntPtr CreateRemoteThread(IntPtr hProcess, IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress, IntPtr lpParameter, uint dwCreationFlags, IntPtr lpThreadId);
  41.  
  42. // Token: 0x06000022 RID: 34
  43. [DllImport("user32", CharSet = CharSet.Auto)]
  44. private static extern bool ReleaseCapture();
  45.  
  46. // Token: 0x06000023 RID: 35
  47. [DllImport("user32", CharSet = CharSet.Auto)]
  48. private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement