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

# es_return_t

Values that indicate the result of an Endpoint Security action that can only succeed or fail.

```
struct es_return_t
```

## Topics

### Return Values

[`ES_RETURN_SUCCESS`](/documentation/EndpointSecurity/ES_RETURN_SUCCESS)

The action succeeded.

[`ES_RETURN_ERROR`](/documentation/EndpointSecurity/ES_RETURN_ERROR)

The action failed with an error.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)