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

# PFAuthenticationLoginWithBattleNetGetResult

> PFAuthenticationLoginWithBattleNetAsync 呼び出しから結果を取得します。PFEntityHandle は常に返されますが、PFAuthenticationLoginResult の追加情報はバッファーが指定された場合にのみ返されます。

PFAuthenticationLoginWithBattleNetAsync 呼び出しから結果を取得します。PFEntityHandle は常に返されますが、PFAuthenticationLoginResult の追加情報はバッファーが指定された場合にのみ返されます。

## 構文

```cpp theme={null}
HRESULT PFAuthenticationLoginWithBattleNetGetResult(  
    XAsyncBlock* async,  
    PFEntityHandle* entityHandle,  
    size_t bufferSize,  
    void* buffer,  
    const PFAuthenticationLoginResult** result,  
    size_t* bufferUsed  
)  
```

### パラメーター

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

非同期操作用の XAsyncBlock。

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

他の PlayFab API 呼び出しの認証に使用できる PFEntityHandle。

**`bufferSize`**   size\_t

結果オブジェクト用のバッファーのサイズ。

**`buffer`**   void\*<br />\**Out\_writes\_bytes\_to\_opt*(bufferSize,*bufferUsed)*

Login の結果値およびそのフィールドに使用するバイト バッファー。

**`result`**   [PFAuthenticationLoginResult\*\*](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult)<br />*optional, library-allocated output*

LoginResult オブジェクトへのポインター。

**`bufferUsed`**   size\_t\*<br />*optional output*

指定されたバッファー内で使用されたバイト数。

### 戻り値

型: HRESULT

この API 操作の結果コード。サービス呼び出しが失敗した場合、結果は E\_PF\_ACCOUNT\_NOT\_FOUND, E\_PF\_BATTLE\_NET\_NOT\_ENABLED\_FOR\_TITLE, E\_PF\_ENCRYPTION\_KEY\_MISSING, E\_PF\_EVALUATION\_MODE\_PLAYER\_COUNT\_EXCEEDED, E\_PF\_INVALID\_AUTH\_TOKEN, E\_PF\_INVALID\_SIGNATURE, E\_PF\_INVALID\_SIGNATURE\_TIME, E\_PF\_INVALID\_TITLE\_ID, E\_PF\_PLAYER\_SECRET\_ALREADY\_CONFIGURED, E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED, E\_PF\_REQUEST\_VIEW\_CONSTRAINT\_PARAMS\_NOT\_ALLOWED、またはグローバルな PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 解説

PFAuthenticationLoginWithBattleNetAsync の呼び出しが失敗した場合、entityHandle は null になります。それ以外の場合、ハンドルは不要になったら PFEntityCloseHandle でクローズする必要があります。'result' が返された場合、それは 'buffer' 内のポインターであり、個別に解放する必要はありません。

## 要件

**ヘッダー:** PFAuthentication.h

## 関連項目

[PFAuthentication のメンバー](/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationLoginWithBattleNetAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetasync.md)
- [PFAuthenticationLoginWithBattleNetGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetgetresultsize.md)
- [PFAuthenticationServerLoginWithBattleNetGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult.md)
- [PFAuthenticationServerLoginWithBattleNetGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresultsize.md)
- [PFAuthenticationServerLoginWithBattleNetAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetasync.md)
