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

> Gets the access tokens.

Gets the access tokens.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Win32, GDK, Linux, and macOS. Gets the access tokens for Microsoft Store authentication. When the asynchronous task is complete, call [PFInventoryGetMicrosoftStoreAccessTokensGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetmicrosoftstoreaccesstokensgetresultsize) and [PFInventoryGetMicrosoftStoreAccessTokensGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetmicrosoftstoreaccesstokensgetresult) to get the result.

## Requirements

**Header:** PFInventory.h

## See also

[PFInventory members](/services/playfab/api-references/c/pfinventory/pfinventory_members)
