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

# XStoreCanAcquireLicenseForStoreIdResult

> XStoreCanAcquireLicenseForStoreIdResult

# XStoreCanAcquireLicenseForStoreIdResult

Gets the results for a call to [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync).

## Syntax

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

### Parameters

*async*   \_Inout\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

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

*storeCanAcquireLicense*   \_Out\_\
Type: [XStoreCanAcquireLicenseResult\*](/reference/system/xstore/structs/xstorecanacquirelicenseresult)

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](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync), and the preview license that the function calls for if the execution is successful.
Call this function after [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync), usually in the context of a callback function.
For a usage example, see [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync).

## 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](/publishing/xstore-commerce/xstore-granting-access)

## See also

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


## Related topics

- [XStoreCanAcquireLicenseResult](/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCanAcquireLicenseForPackageResult](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageresult.md)
