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

# PFInventoryGetMicrosoftStoreAccessTokensAsync

> アクセス トークンを取得します。

アクセス トークンを取得します。

## 構文

```cpp theme={null}
HRESULT PFInventoryGetMicrosoftStoreAccessTokensAsync(  
    PFEntityHandle entityHandle,  
    const PFInventoryGetMicrosoftStoreAccessTokensRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFInventoryGetMicrosoftStoreAccessTokensRequest\*](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetmicrosoftstoreaccesstokensrequest)

値が設定されたリクエスト オブジェクト。

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Win32、GDK、Linux、および macOS で利用できます。Microsoft Store 認証用のアクセス トークンを取得します。非同期タスクが完了したら、[PFInventoryGetMicrosoftStoreAccessTokensGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetmicrosoftstoreaccesstokensgetresultsize) と [PFInventoryGetMicrosoftStoreAccessTokensGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetmicrosoftstoreaccesstokensgetresult) を呼び出して結果を取得します。

## 要件

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

## 関連項目

[PFInventory のメンバー](/services/playfab/api-references/c/pfinventory/pfinventory_members)
