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

# PFInventoryExecuteInventoryOperationsGetResult

> 取得成功的 PFInventoryExecuteInventoryOperationsAsync 呼叫的結果。

取得成功的 PFInventoryExecuteInventoryOperationsAsync 呼叫的結果。

## 語法

```cpp theme={null}
HRESULT PFInventoryExecuteInventoryOperationsGetResult(  
    XAsyncBlock* async,  
    size_t bufferSize,  
    void* buffer,  
    PFInventoryExecuteInventoryOperationsResponse** result,  
    size_t* bufferUsed  
)  
```

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t

結果物件的緩衝區大小。

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

用於結果值及其欄位的位元組緩衝區。

**`result`**   [PFInventoryExecuteInventoryOperationsResponse\*\*](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryexecuteinventoryoperationsresponse)<br />*library-allocated output*

結果物件的指標。

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

所提供緩衝區中已使用的位元組數。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_DATABASE\_THROUGHPUT\_EXCEEDED、E\_PF\_INSUFFICIENT\_FUNDS、E\_PF\_INVALID\_CATALOG\_ITEM\_CONFIGURATION、E\_PF\_ITEM\_NOT\_FOUND、E\_PF\_PRECONDITION\_FAILED 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 備註

result 是 buffer 內的指標，不需要另外釋放。

## 需求

**標頭：** PFInventory.h

## 另請參閱

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


## Related topics

- [PFInventoryExecuteInventoryOperationsAsync](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsasync.md)
- [服務 C API 概觀 - PFInventory.h](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryExecuteInventoryOperationsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsgetresultsize.md)
- [PFInventoryExecuteTransferOperationsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecutetransferoperationsgetresult.md)
- [PFInventoryExecuteTransferOperationsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecutetransferoperationsgetresultsize.md)
