---
title: es_event_get_task_t
framework: endpointsecurity
role: symbol
role_heading: Structure
path: endpointsecurity/es_event_get_task_t
---

# es_event_get_task_t

A type for an event that indicates the retrieval of a task’s control port.

## Declaration

```swift
struct es_event_get_task_t
```

## Overview

Overview This event represents a process that obtains a send right to a task control port, formerly known as a “task port”. Operations that obtain a send right include task_for_pid(_:_:_:), task_identity_token_get_task_port(_:_:_:), processor_set_tasks(_:_:_:), and certain debugging and DTrace operations. note: For more information on ports and port rights, see the “Ports, Port Rights, Port Sets, and Port Namespaces” section of Mach Overview in the Kernel Programming Guide.

## Topics

### Inspecting Event Properties

- [target](endpointsecurity/es_event_get_task_t/target.md)
- [reserved](endpointsecurity/es_event_get_task_t/reserved.md)

### Initializers

- [init(target:type:reserved:)](endpointsecurity/es_event_get_task_t/init(target:type:reserved:).md)

### Instance Properties

- [type](endpointsecurity/es_event_get_task_t/type.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Task Port Event Types

- [es_event_get_task_read_t](endpointsecurity/es_event_get_task_read_t.md)
- [es_event_get_task_inspect_t](endpointsecurity/es_event_get_task_inspect_t.md)
- [es_event_get_task_name_t](endpointsecurity/es_event_get_task_name_t.md)
