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

[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync) 호출의 결과를 가져옵니다.

## 구문

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

### 매개 변수

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

[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)에 전달하는 `XAsyncBlock`입니다.
[XAsyncBlock](/reference/system/xasync/structs/xasyncblock)을 사용하여 호출의 상태를 폴링하고 호출 결과를 검색합니다.
자세한 내용은 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)을 참조하세요.

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

반환 시 결과의 상태를 확인하여 사용자가 제품에 라이선스를 부여할 수 있는지 확인합니다.
게임 및 durable(패키지 포함 또는 미포함)에 대해 이 API를 호출합니다.
또한 삽입된 디스크를 사용하여 제품에 라이선스를 부여할 수 있는 경우에도 결과를 반환합니다.
결과에는 사용자가 라이선스를 부여받을 수 있는 SKU가 포함됩니다.
디스크를 사용하여 사용자가 라이선스를 부여받을 수 있는 콘텐츠의 경우 SKU는 'DISC'입니다.

### 반환 값

형식: HRESULT

성공 시 S\_OK, 그렇지 않으면 오류 코드를 반환합니다.

`XStoreCanAcquireLicenseForStoreIdResult` 함수는 다음 오류 코드를 반환합니다.

| 오류 코드                                                   | 의미                                                                              |
| ------------------------------------------------------- | ------------------------------------------------------------------------------- |
| 0x87E10BC6 `LM_E_CONTENT_NOT_IN_CATALOG`                | 카탈로그에서 제품을 찾을 수 없습니다.                                                           |
| 0x803F8001 `LM_E_CONTENT_NOT_OWNED`                     | 제품이 소유되지 않았습니다.                                                                 |
| 0x803F8008 `LM_E_PREDOWNLOAD_LICENSE_NOT_YET_AVAILABLE` | 제품이 소유되어 있지만 아직 릴리스되지 않았기 때문에 라이선스를 부여할 수 없습니다.                                 |
| 0x803F9006 `LM_E_ENTITLED_USER_SIGNED_OUT`              | 제품 소유자가 로그인되어 있지 않습니다.                                                          |
| 0x89245305 `E_GAMESTORE_LICENSE_ACTION_THROTTLED`       | 게임이 제품에 대한 라이선스를 지나치게 많이 쿼리하여 이제 제한됩니다. 동일한 제품에 대해 10분 이내에 30번의 라이선스 시도로 제한됩니다. |

## 설명

이 함수는 [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)의 실행 결과와 실행이 성공하면 해당 함수가 호출하는 미리 보기 라이선스를 검색합니다.
[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync) 이후에 이 함수를 호출합니다. 일반적으로 콜백 함수의 컨텍스트에서 호출됩니다.
사용 예제는 [XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)를 참조하세요.

## 요구 사항

**헤더:** XStore.h(XGameRuntime.h에 포함됨)

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [Granting players access to add-on content](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)

## 참고 항목

[XStore](/reference/system/xstore/xstore_members)\
[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)\
[How to use a durable without a package](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-dwobs)\
[Granting players access to add-on content](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)


## Related topics

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