<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/ES_EVENT_TYPE_NOTIFY_GET_TASK",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@EA@es_event_type_t@ES_EVENT_TYPE_NOTIFY_GET_TASK"
  },
  "title" : "ES_EVENT_TYPE_NOTIFY_GET_TASK"
}
-->

# ES_EVENT_TYPE_NOTIFY_GET_TASK

An identifier for a process that notifies endpoint security that it is retrieving the task control port for another process.

```
var ES_EVENT_TYPE_NOTIFY_GET_TASK: es_event_type_t { get }
```

## Discussion

This identifier corresponds to the [`es_events_t`](/documentation/EndpointSecurity/es_events_t) union member [`get_task`](/documentation/EndpointSecurity/es_events_t/get_task), which has the type [`es_event_get_task_t`](/documentation/EndpointSecurity/es_event_get_task_t).

Endpoint Security delivers this event when a process obtains a send control right to a task control port. This is a result of calling methods like `task_for_pid(_:_:_:)` or `task_identity_token_get_task_port(_:_:_:)`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)