> ## 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\*\*](/ko/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 멤버](/ko/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

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