Example #1
0
 public static extern bool GetExitCodeThread(SafeMemoryHandle hThread, out IntPtr lpExitCode);
Example #2
0
 public static extern bool TerminateThread(SafeMemoryHandle hThread, int dwExitCode);
Example #3
0
 public static extern WaitValues WaitForSingleObject(SafeMemoryHandle hHandle, uint dwMilliseconds);
Example #4
0
 public static extern int NtQueryInformationProcess(SafeMemoryHandle processHandle, ProcessInformationClass infoclass, ref ProcessBasicInformation processinfo, int length, IntPtr bytesread);
Example #5
0
 public static extern bool CloseHandle(SafeMemoryHandle hObject);
Example #6
0
 public static extern bool FlushInstructionCache(SafeMemoryHandle hProcess, IntPtr lpBaseAddress, long dwSize);
Example #7
0
 public static extern uint GetModuleFileNameEx(SafeMemoryHandle hProcess, IntPtr hModule, [Out] StringBuilder lpBaseName, int nSize);
Example #8
0
 public static extern long VirtualQueryEx(SafeMemoryHandle hProcess, IntPtr lpAddress, out MemoryBasicInformation lpBuffer, int dwLength);
Example #9
0
 public static extern int GetProcessId(SafeMemoryHandle hProcess);
Example #10
0
 public static extern bool VirtualFreeEx(SafeMemoryHandle hProcess, IntPtr lpAddress, long dwSize, MemoryReleaseFlags dwFreeType);
Example #11
0
 public static extern bool VirtualProtectEx(SafeMemoryHandle hProcess, IntPtr lpAddress, long dwSize, MemoryProtectionFlags flNewProtect, out MemoryProtectionFlags lpflOldProtect);
Example #12
0
 public static extern IntPtr VirtualAllocEx(SafeMemoryHandle hProcess, IntPtr lpAddress, long dwSize, MemoryAllocationFlags flAllocationType, MemoryProtectionFlags flProtect);
Example #13
0
 public static extern bool WriteProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, long nSize, out long lpNumberOfBytesWritten);
Example #14
0
 public static extern bool ReadProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress, [Out] byte[] lpBuffer, long dwSize, out long lpNumberOfBytesRead);
Example #15
0
 public static extern bool IsWow64Process(SafeMemoryHandle hProcess, out bool wow64Process);
Example #16
0
 public static extern int GetThreadId(SafeMemoryHandle hThread);
Example #17
0
 public static extern bool IsWow64Process2(SafeMemoryHandle hProcess, out ImageFileMachine pProcessMachine, out ImageFileMachine pNativeMachine);
Example #18
0
 public static extern SafeMemoryHandle CreateRemoteThread(SafeMemoryHandle hProcess, IntPtr lpThreadAttributes, ulong dwStackSize, IntPtr lpStartAddress, IntPtr lpParameter, ThreadCreationFlags dwCreationFlags, out uint lpThreadId);
Example #19
0
 public static extern bool EnumProcessModulesEx(SafeMemoryHandle hProcess, [Out] IntPtr lphModule, int cb, out int lpcbNeeded, ListModulesFlags dwFilterFlag);
Example #20
0
 public static extern uint ResumeThread(SafeMemoryHandle hThread);
Example #21
0
 public static extern bool GetModuleInformation(SafeMemoryHandle hProcess, IntPtr hModule, [Out] out ModuleInfo lpmodinfo, int cb);
Example #22
0
 public static extern uint SuspendThread(SafeMemoryHandle hThread);
Example #23
0
 public static extern uint NtQueryInformationThread(SafeMemoryHandle threadHandle, uint infoclass, ref ThreadBasicInformation threadinfo, int length, IntPtr bytesread);
Example #24
0
 public static extern uint NtAllocateVirtualMemory(SafeMemoryHandle processHandle, [In, Out] ref IntPtr baseAddress, uint zeroBits, [In, Out] ref IntPtr regionSize, MemoryAllocationFlags allocationType, MemoryProtectionFlags protect);