> ## 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.

# PFMultiplayerFinishProcessingMatchmakingStateChanges

> 返回先前检索以进行处理的 PlayFab 多人游戏匹配状态变更数组，将资源释放回库。

返回正在处理的匹配状态变更数组。

## 语法

```cpp theme={null}
HRESULT PFMultiplayerFinishProcessingMatchmakingStateChanges(  
    PFMultiplayerHandle handle,  
    uint32_t stateChangeCount,  
    const PFMatchmakingStateChange* const* stateChanges  
)  
```

### 参数

**`handle`**   PFMultiplayerHandle

PFMultiplayer API 实例的句柄。

**`stateChangeCount`**   uint32\_t

`stateChanges` 指定的列表中提供的、先前由 [PFMultiplayerStartProcessingMatchmakingStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges) 返回且现已被 title 处理的变更数量。

**`stateChanges`**   PFMatchmakingStateChange\* const\*\
*大小为 `stateChangeCount` 的输入数组*

先前由 [PFMultiplayerStartProcessingMatchmakingStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges) 返回且现已被 title 处理的变更数组。

### 返回值

类型：HRESULT

如果调用成功，则为 `S_OK`；否则为错误代码。可以通过 [PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) 获取错误代码的人类可读形式。

## 备注

此方法通知匹配库：先前调用 [PFMultiplayerStartProcessingMatchmakingStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges) 报告的状态变更现已被 title 处理，因此可以回收其关联资源。可以以任意数量的状态变更调用 PFMultiplayerFinishProcessingMatchmakingStateChanges()。PFMultiplayerStartProcessingMatchmakingStateChanges() 返回的每个状态变更必须恰好一次返回给 PFMultiplayerFinishProcessingMatchmakingStateChanges()，但可以乱序返回，也可以与来自其他 PFMultiplayerStartProcessingMatchmakingStateChanges() 调用的状态变更交错返回。<br /><br /> 与特定状态变更关联的任何资源都保证在该状态变更返回给 PFMultiplayerFinishProcessingMatchmakingStateChanges() 之前一直有效。<br /><br /> 为获得最佳效果，应尽量减少在调用 PFMultiplayerFinishProcessingMatchmakingStateChanges() 之前处理状态变更所花费的时间。

## 要求

**头文件：** PFMatchmaking.h

## 另请参阅

[PFMatchmaking 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)\
[PFMatchmakingStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingstatechange)\
[PFMultiplayerStartProcessingMatchmakingStateChanges](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges)


## Related topics

- [PFMultiplayerStartProcessingMatchmakingStateChanges](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges.md)
- [PFMatchmakingStateChange](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingstatechange.md)
- [Matchmaking SDK 快速入门](/zh-CN/services/playfab/multiplayer/matchmaking/quickstart-client-sdk.md)
- [从 MPSD 迁移到 PlayFab Multiplayer 和 MPA](/zh-CN/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [异步 Lobby 和 Matchmaking C++ SDK 操作指南](/zh-CN/services/playfab/multiplayer/lobby/lobby-and-matchmaking-client-sdk-async.md)
