|
ProcessHelperOpenProcess Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("kernel32.dll")]
public static IntPtr OpenProcess(
ProcessAccess processAccess,
bool inheritHandle,
int processId
)
<DllImportAttribute("kernel32.dll">]
Public Shared Function OpenProcess (
processAccess As ProcessAccess,
inheritHandle As Boolean,
processId As Integer
) As IntPtr
public:
[DllImportAttribute(L"kernel32.dll")]
static IntPtr OpenProcess(
ProcessAccess processAccess,
bool inheritHandle,
int processId
)
[<DllImportAttribute("kernel32.dll")>]
static member OpenProcess :
processAccess : ProcessAccess *
inheritHandle : bool *
processId : int -> IntPtr
Parameters
- processAccess ProcessAccess
- The access to the process object. This access right is checked
against the security descriptor for the process. This parameter can be one or more of the
process access rights.
- inheritHandle Boolean
- If this value is TRUE, processes created by this process will
inherit the handle. Otherwise, the processes do not inherit this handle.
- processId Int32
- The identifier of the local process to be opened.
Return Value
IntPtrIf the function fails, the return value is NULL. To get extended error information,
call .
See Also