OpenProcess (user32)
Last changed: -74.212.48.23

.
Summary
TODO - a short description

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Boolean bInheritHandle, UInt32 dwProcessId);

VB Signature:

<DllImport("kernel32.dll", SetLastError:=True)> _
Private Shared Function OpenProcess(ByVal dwDesiredAccess As UInteger, ByVal bInheritHandle As Boolean, ByVal dwProcessId As UInteger) As IntPtr
End Function

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Pass the returned handle to CloseHandle after you are done with it.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

HandleWindow = OpenProcess(ProcessAccessFlags.VMRead,0, ProcessID);

Documentation
OpenProcess on MSDN