# NtOpenProcess

```csharp
[DllImport("ntdll.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe NTSTATUS NtOpenProcess(
    HANDLE* ProcessHandle,
    uint DesiredAccess,
    OBJECT_ATTRIBUTES* ObjectAttributes,
    CLIENT_ID* ClientId);
```

[process\_access\_rights](https://www.pinvoke.dev/threading/process_access_rights "mention")

[object\_attributes](https://www.pinvoke.dev/foundation/object_attributes "mention")

[client\_id](https://www.pinvoke.dev/foundation/client_id "mention")
