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

# PFAuthenticationLoginWithPSNGetResultSize

> 取得儲存 PFAuthenticationLoginWithPSNAsync 呼叫結果所需的大小 (以位元組為單位)。

取得儲存 PFAuthenticationLoginWithPSNAsync 呼叫結果所需的大小 (以位元組為單位)。

## 語法

```cpp theme={null}
HRESULT PFAuthenticationLoginWithPSNGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t\*<br />*output*

結果所需的緩衝區大小 (以位元組為單位)。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_ENCRYPTION\_KEY\_MISSING、E\_PF\_EVALUATION\_MODE\_PLAYER\_COUNT\_EXCEEDED、E\_PF\_FEATURE\_NOT\_CONFIGURED\_FOR\_TITLE、E\_PF\_INVALID\_PARAMS、E\_PF\_INVALID\_PSN\_AUTH\_CODE、E\_PF\_INVALID\_PSN\_ISSUER\_ID、E\_PF\_PLAYER\_SECRET\_ALREADY\_CONFIGURED、E\_PF\_PLAYER\_SECRET\_NOT\_CONFIGURED、E\_PF\_PSN\_INACCESSIBLE、E\_PF\_PSN\_NEXT\_GEN\_NOT\_CONFIGURED\_FOR\_TITLE、E\_PF\_REQUEST\_VIEW\_CONSTRAINT\_PARAMS\_NOT\_ALLOWED 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFAuthentication.h

## 另請參閱

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


## Related topics

- [PFAuthenticationLoginWithXUserGetResultSize](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxusergetresultsize.md)
- [PFAuthenticationLoginWithSteamGetResultSize](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithsteamgetresultsize.md)
- [PFAuthenticationLoginWithXboxGetResultSize](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresultsize.md)
- [PFAuthenticationServerLoginWithPSNGetResultSize](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsngetresultsize.md)
- [PFAuthenticationLoginWithCustomIDGetResultSize](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithcustomidgetresultsize.md)
