---
title: "es_mute_process_events(_:_:_:_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_mute_process_events(_:_:_:_:)"
---

# es_mute_process_events(_:_:_:_:)

Suppresses a subset of events from a given process.

## Declaration

```swift
func es_mute_process_events(_ client: OpaquePointer, _ audit_token: UnsafePointer<audit_token_t>, _ events: UnsafePointer<es_event_type_t>, _ event_count: Int) -> es_return_t
```

## Parameters

- `client`: A previously-created client. If the call succeeds, this client no longer receives events that match the types in the events array from the process indicated by audit_token.
- `audit_token`: The audit token that indicates the process to mute.
- `events`: An array of event types to mute.
- `event_count`: The number of members in the events array.

## Return Value

Return Value A value that indicates whether the mute request succeeded or failed with an error.

## Discussion

Discussion To mute all events from a process, use es_mute_process(_:_:).

## See Also

### Muting Events

- [es_mute_process(_:_:)](endpointsecurity/es_mute_process(_:_:).md)
- [es_muted_processes_t](endpointsecurity/es_muted_processes_t.md)
- [es_release_muted_processes(_:)](endpointsecurity/es_release_muted_processes(_:).md)
- [es_muted_processes_events(_:_:)](endpointsecurity/es_muted_processes_events(_:_:).md)
- [es_mute_path(_:_:_:)](endpointsecurity/es_mute_path(_:_:_:).md)
- [es_mute_path_events(_:_:_:_:_:)](endpointsecurity/es_mute_path_events(_:_:_:_:_:).md)
- [es_mute_path_type_t](endpointsecurity/es_mute_path_type_t.md)
- [es_muted_paths_events(_:_:)](endpointsecurity/es_muted_paths_events(_:_:).md)
- [es_muted_paths_t](endpointsecurity/es_muted_paths_t.md)
- [es_release_muted_paths(_:)](endpointsecurity/es_release_muted_paths(_:).md)
