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

# PFMultiplayerFinishProcessingLobbyStateChanges

> 在 PlayFab Multiplayer C++ SDK 中傳回先前傳遞之大廳狀態變更項目的 PFMultiplayerFinishProcessingLobbyStateChanges 參考。

傳回正在處理的 PFLobbyStateChanges 陣列。

## 語法

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

### 參數

**`handle`**   PFMultiplayerHandle

PFMultiplayer API 執行個體的控制代碼。

**`stateChangeCount`**   uint32\_t

先前由 [PFMultiplayerStartProcessingLobbyStateChanges()](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges) 傳回、現已由遊戲處理的變更數目 (在 `stateChanges` 指定的清單中提供)。

**`stateChanges`**   PFLobbyStateChange\* const\*\
*大小為 `stateChangeCount` 的輸入陣列*

先前由 [PFMultiplayerStartProcessingLobbyStateChanges()](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges) 傳回、現已由遊戲處理的變更陣列。

### 傳回值

類型：HRESULT

如果呼叫成功，則為 `S_OK`；否則為錯誤碼。可透過 [PFMultiplayerGetErrorMessage()](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) 擷取錯誤碼的人類可讀形式。

## 備註

此方法會通知 Lobby 程式庫，先前呼叫 [PFMultiplayerStartProcessingLobbyStateChanges()](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges) 所回報的狀態變更現已由遊戲處理，因此可以回收其相關聯的資源。您可以使用任意數量的狀態變更呼叫 PFMultiplayerFinishProcessingLobbyStateChanges()。PFMultiplayerStartProcessingLobbyStateChanges() 所傳回的每個狀態變更都必須恰好一次傳回給 PFMultiplayerFinishProcessingLobbyStateChanges()，但可以不按順序傳回，且可以與其他 PFMultiplayerStartProcessingLobbyStateChanges() 呼叫的狀態變更交錯。 <br /><br /> 與特定狀態變更相關聯的任何資源，保證在狀態變更傳回給 PFMultiplayerFinishProcessingLobbyStateChanges() 之前都保持有效。   <br /><br /> 為了獲得最佳結果，您應盡量縮短在呼叫 PFMultiplayerFinishProcessingLobbyStateChanges() 之前處理狀態變更所花費的時間。

## 需求

**標頭：** PFLobby.h

## 另請參閱

[PFLobby 成員](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)\
[PFLobbyStateChange](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbystatechange)\
[PFMultiplayerStartProcessingLobbyStateChanges](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges)


## Related topics

- [PFMultiplayerStartProcessingLobbyStateChanges](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges.md)
- [PFLobbyStateChange](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbystatechange.md)
- [PFLobbyDisconnectedStateChange](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbydisconnectedstatechange.md)
- [從 MPSD 移至 PlayFab Multiplayer 與 MPA](/zh-TW/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [PFMultiplayerFinishProcessingMatchmakingStateChanges](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md)
