> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreCanAcquireLicenseForStoreIdResult

> XStoreCanAcquireLicenseForStoreIdResult

Gets the results for a call to [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md).

## Syntax

```cpp theme={null}
HRESULT XStoreCanAcquireLicenseForStoreIdResult(  
         XAsyncBlock* async,  
         XStoreCanAcquireLicenseResult* storeCanAcquireLicense  
)  
```

### Parameters

*async*   \_Inout\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)

The `XAsyncBlock` that you pass to [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md).
Use the [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) to poll for the call's status and retrieve call results.
For more information, see [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md).

*storeCanAcquireLicense*   \_Out\_\
Type: [XStoreCanAcquireLicenseResult\*](https://docs.xbox.com/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)

On return, check the result's status to see if the user can license the product.
Call this API for games and durables (with or without packages).
It also returns a result if the product can be licensed by using an inserted disc.
The result includes which SKU the user can license.
For content that users can license by using a disc, the SKU is 'DISC'.

### Return value

Type: HRESULT

S\_OK on success; otherwise, returns an error code.

The `XStoreCanAcquireLicenseForStoreIdResult` function returns the following error codes:

| Error code | Meaning |
| - | - |
| 0x87E10BC6 `LM_E_CONTENT_NOT_IN_CATALOG` | The product isn't found in the catalog. |
| 0x803F8001 `LM_E_CONTENT_NOT_OWNED` | The product isn't owned. |
| 0x803F8008 `LM_E_PREDOWNLOAD_LICENSE_NOT_YET_AVAILABLE` | The product is owned but can't be licensed because it isn't released yet. |
| 0x803F9006 `LM_E_ENTITLED_USER_SIGNED_OUT` | The owner of the product isn't signed in. |
| 0x89245305 `E_GAMESTORE_LICENSE_ACTION_THROTTLED` | The game excessively queried a license for the product and is now throttled. Limit is 30 licensing attempts within 10 minutes for the same product. |

## Remarks

This function retrieves the execution results of [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md), and the preview license that the function calls for if the execution is successful.
Call this function after [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md), usually in the context of a callback function.
For a usage example, see [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md).

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles, and XBOX Series consoles

## Conceptual documentation

* [Granting players access to add-on content](https://docs.xbox.com/publishing/xstore-commerce/xstore-granting-access.md)

## See also

[XStore](https://docs.xbox.com/reference/system/xstore/xstore_members.md)\
[XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)\
[How to use a durable without a package](https://docs.xbox.com/publishing/xstore-commerce/xstore-dwob.md)\
[Granting players access to add-on content](https://docs.xbox.com/publishing/xstore-commerce/xstore-granting-access.md)


## Related topics

- [XStoreCanAcquireLicenseResult](https://docs.xbox.com/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)
- [XStore (API contents)](https://docs.xbox.com/reference/system/xstore/xstore_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCanAcquireLicenseForPackageResult](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageresult.md)
