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

# PFLobbyClaimServerLobbyCompletedStateChange

> ClaimServerLobbyCompleted PlayFab Multiplayer 状态更改的详细信息，当游戏服务器完成领取现有大厅时提供。

特定于 *ClaimServerLobbyCompleted* 类型状态更改的信息。

## 语法

```cpp theme={null}
struct PFLobbyClaimServerLobbyCompletedStateChange : PFLobbyStateChange {  
    HRESULT result;  
    void* asyncContext;  
    const char* lobbyId;  
    PFLobbyHandle lobby;  
}  
```

### 成员

**`result`**   HRESULT

指示 ClaimServerLobby 操作的结果。

可通过 [PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) 检索此结果的可读形式。

**`asyncContext`**   void\*

提供给与此状态更改相关联调用的异步上下文。

**`lobbyId`**   const char\*\
*is null-terminated*

提供给与此状态更改相关联调用的大厅 ID。

**`lobby`**   PFLobbyHandle\
*must not be null*

已创建并加入的大厅。

## 备注

要使用此功能，必须在包含 PFLobby.h 之前定义 PFMULTIPLAYER\_INCLUDE\_SERVER\_APIS。

## 要求

**头文件：** PFLobby.h

## 另请参阅

[PFLobby 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFMultiplayerClaimServerLobby](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerclaimserverlobby.md)
- [PFLobbyGetLobbyId](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetlobbyid.md)
- [PFLobbyGetConnectionString](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetconnectionstring.md)
- [PFLobbyGetOwner](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md)
- [PFLobbyGetMembershipLock](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetmembershiplock.md)
