<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_respond_flags_result(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@F@es_respond_flags_result"
  },
  "title" : "es_respond_flags_result(_:_:_:_:)"
}
-->

# es_respond_flags_result(_:_:_:_:)

Responds to an event that requires authorization flags as a response.

```
func es_respond_flags_result(_ client: OpaquePointer, _ message: UnsafePointer<es_message_t>, _ authorized_flags: UInt32, _ cache: Bool) -> es_respond_result_t
```

## Parameters

`client`

The client that produced the event.

`message`

The message that delivered the event.

`authorized_flags`

A `flags` value to apply as a mask on the flags in the event.

`cache`

Indicates whether Endpoint Security should cache this result. The caching semantics depend on the specific event type.

## Return Value

A result that indicates whether the response succeeded or failed.

## Discussion

Some events require you to respond with [`es_respond_auth_result(_:_:_:_:)`](/documentation/EndpointSecurity/es_respond_auth_result(_:_:_:_:)). Responding to such events with this method instead fails with an error.

---

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)