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

# XStoreCanAcquireLicenseForPackageResult

> XStoreCanAcquireLicenseForPackageResult

# XStoreCanAcquireLicenseForPackageResult

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

## Syntax

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

### Parameters

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

The XAsyncBlock passed to [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync).
Use the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) to check the call's status and get the results. For more information, see [XAsyncBlock](/reference/system/xasync/structs/xasyncblock).

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

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](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync), and the preview license if the execution was successful.
Call this function after [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) usually in the context of a callback function.
For more information, see [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync).

## 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)\
[XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync)\
[Manage and license downloadable content (DLC)](/publishing/xstore-commerce/xstore-dlc)


## Related topics

- [XStoreCanAcquireLicenseResult](/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md)
- [XStoreAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
