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

# es_get_deadline_max_milliseconds(_:_:_:)

Get the current maximum deadline in milliseconds for a specific event type

```
func es_get_deadline_max_milliseconds(_ client: OpaquePointer, _ event: es_event_type_t, _ milliseconds: UnsafeMutablePointer<UInt32>) -> es_return_t
```

## Parameters

`client`

The client to query

`event`

The event type to query the deadline for

`milliseconds`

Output parameter for the current maximum deadline in milliseconds for the specified event

## Return Value

ES_RETURN_SUCCESS on success, ES_RETURN_ERROR on failure

---

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)