> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XApuGetUtilization

> XApuGetUtilization

# XApuGetUtilization

Gets the current utilization values of the hardware server for the specified process type and number of channels.

## Syntax

```cpp theme={null}
HRESULT XApuGetUtilization(  
         XApuProcessType processType,  
         uint32_t channelCount,  
         XApuUtilization* utilization  
)  
```

### Parameters

*processType*   \_In\_\
Type: [XApuProcessType](/reference/audio/xapu/enums/xapuprocesstype)

Single process or chain of processes that the XAPU performs.

*channelCount*   \_In\_\
Type: uint32\_t

Number of channels.

*utilization*   \_Outptr\_\
Type: [XApuUtilization\*](/reference/audio/xapu/structs/xapuutilization)

Utilization parameters returned.

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an error code.

## Remarks

This function uses the `processType` parameter to pass to the `XApuProcessType` enumeration. It uses the `channelCount` parameter for the specified process type and number of channels. It uses the `XApuUtilization` enumeration to define the utilization parameters returned. For more information, see [XApuUtilization](/reference/audio/xapu/structs/xapuutilization).

## Requirements

**Header:** xapu.h

**Library:** xapu.lib

**Supported platforms:** XBOX Series X|S

## See also

[XApuProcessType](/reference/audio/xapu/enums/xapuprocesstype)\
[XApuUtilization](/reference/audio/xapu/structs/xapuutilization)\
[XAPU](/reference/audio/xapu/xapu_members)


## Related topics

- [XApuUtilization](/reference/audio/xapu/structs/xapuutilization.md)
- [XApuProcessType](/reference/audio/xapu/enums/xapuprocesstype.md)
- [XAPU](/reference/audio/xapu/xapu_members.md)
- [build_region_utilization](/services/playfab/api-references/events/MultiplayerServers/build-region-utilization.md)
- [BuildRegionUtilizationEventPayload](/services/playfab/api-references/events/data-types/buildregionutilizationeventpayload.md)
