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

# PFInventoryRedeemMicrosoftStoreInventoryItemsGetResultSize

> 取得儲存 RedeemMicrosoftStoreInventoryItems 呼叫結果所需的位元組大小。

取得儲存 RedeemMicrosoftStoreInventoryItems 呼叫結果所需的位元組大小。

## 語法

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

### 參數

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

用於非同步作業的 XAsyncBlock。

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

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

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_ACCOUNT\_NOT\_LINKED、E\_PF\_INVALID\_CATALOG\_ITEM\_CONFIGURATION、E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN、E\_PF\_XBOX\_INACCESSIBLE、E\_PF\_XBOX\_XASS\_EXCHANGE\_FAILURE 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFInventory.h

## 另請參閱

[PFInventory 成員](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryRedeemMicrosoftStoreInventoryItemsAsync](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsasync.md)
- [服務 C API 概觀 - PFInventory.h](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresult.md)
- [PFInventoryRedeemPlayStationStoreInventoryItemsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsgetresultsize.md)
- [PFInventoryRedeemAppleAppStoreInventoryItemsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresultsize.md)
