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

# XStoreCanAcquireLicenseForPackageResult

> XStoreCanAcquireLicenseForPackageResult

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

## Syntax

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

### Parameters

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

The XAsyncBlock passed to [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md).
Use the [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) to check the call's status and get the 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)

Structure that shows if a license can be acquired and what SKU the user can license.

### Return value

Type: HRESULT

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

The **XStoreCanAcquireLicenseForPackageResult** function might return the following error codes:

| Error code | Meaning |
| - | - |
| 0x87E10BC6 `LM_E_CONTENT_NOT_IN_CATALOG` | The product wasn'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` | 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 result function retrieves the execution results of [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md), and the preview license if the execution was successful.
Call this function after [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md) usually in the context of a callback function.
For more information, see [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.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)\
[XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md)\
[Manage and license downloadable content (DLC)](https://docs.xbox.com/publishing/xstore-commerce/xstore-dlc.md)


## Related topics

- [XStoreCanAcquireLicenseResult](https://docs.xbox.com/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md)
- [XStoreAcquireLicenseForPackageAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.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)
