> ## 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 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 備註

如果 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 呼叫失敗，entityHandle 將為 null。否則，不再需要控制代碼時，必須使用 PFEntityCloseHandle 將其關閉。

## 需求

**標頭：** PFAuthentication.h

## 另請參閱

[PFAuthentication 成員](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationAuthenticateGameServerWithCustomIdAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationauthenticategameserverwithcustomidasync.md)
- [服務 C API 概觀 - PFAuthentication.h](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationAuthenticateCustomIdResult](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidresult.md)
- [Authenticate Game Server With Custom Id](/api-reference/authentication/authenticate-game-server-with-custom-id.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
