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

# PFAuthenticationAuthenticateGameServerWithCustomIdGetResult

> 获取 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 调用的结果。

获取 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 调用的结果。

## 语法

```cpp theme={null}
HRESULT PFAuthenticationAuthenticateGameServerWithCustomIdGetResult(  
    XAsyncBlock* async,  
    PFEntityHandle* entityHandle,  
    bool* newlyCreated  
)  
```

### 参数

**`async`**   XAsyncBlock\*<br />*Inout*

用于异步操作的 XAsyncBlock。

**`entityHandle`**   PFEntityHandle\*<br />*output*

可用于对其他 PlayFab API 调用进行身份验证的 PFEntityHandle。

**`newlyCreated`**   bool\*<br />*optional output*

如果本次身份验证时新建了帐户，则设置为 true；否则设置为 false。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是全局 PlayFab 服务错误之一。有关错误处理的更多详细信息，请参阅文档页“处理 PlayFab 错误”。

## 备注

如果 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 调用失败，entityHandle 将为 null。否则，当不再需要该句柄时，必须使用 PFEntityCloseHandle 将其关闭。

## 要求

**头文件：** PFAuthentication.h

## 另请参阅

[PFAuthentication 成员](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationAuthenticateGameServerWithCustomIdAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationauthenticategameserverwithcustomidasync.md)
- [服务 C API 概览 - PFAuthentication.h](/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationAuthenticateCustomIdResult](/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
