NtOpenProcess (ntdll)
Last changed: -186.136.223.176

.
Summary
Opens a handle.

C# Signature:

[DllImport("ntdll.dll", SetLastError=true)]
static extern NTSTATUS NtOpenProcess(ref IntPtr ProcessHandle, UInt32 AccessMask, ref OBJECT_ATTRIBUTES ObjectAttributes, ref CLIENT_ID ClientId);

Boo Signature:

[DllImport("ntdll.dll", SetLastError : true)]
def NtOpenProcess(ref ProcessHandle as IntPtr, AccessMask as UInt32, ref ObjectAttributes as OBJECT_ATTRIBUTES, ref ClientId as CLIENT_ID) as UInt32:
     pass

User-Defined Types:

[StructLayout(LayoutKind.Sequential, Pack : 0)]
struct OBJECT_ATTRIBUTES:
     Length as Int32
     RootDirectory as IntPtr
     ObjectName as IntPtr
     Attributes as uint
     SecurityDescriptor as IntPtr
     SecurityQualityOfService as IntPtr

struct CLIENT_ID:
     UniqueProcess as IntPtr
     UniqueThread as IntPtr

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation