[DllImport("kernel32.dll", SetLastError=true)]
static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Boolean bInheritHandle, Int32 dwProcessId);
<DllImport("kernel32.dll", SetLastError:=True)> _
Private Shared Function OpenProcess(ByVal dwDesiredAccess As UInteger, ByVal bInheritHandle As Boolean, ByVal dwProcessId As Integer) As IntPtr
End Function
None.
Do you know one? Please contribute it!
Pass the returned handle to CloseHandle after you are done with it.
Please add some!
Please add some!
HandleWindow = OpenProcess(ProcessAccessFlags.VMRead,0, ProcessID);