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

# XStoreUnregisterGameLicenseChanged

> XStoreUnregisterGameLicenseChanged

# XStoreUnregisterGameLicenseChanged

指定したタイトル ライセンス変更コールバックの登録を解除します。

## Syntax

```cpp theme={null}
bool XStoreUnregisterGameLicenseChanged(  
         XStoreContextHandle storeContextHandle,  
         XTaskQueueRegistrationToken token,  
         bool wait  
)  
```

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md) によって返されたユーザーのストア コンテキスト ハンドル。

*token*   \_In\_\
型: [XTaskQueueRegistrationToken](https://docs.xbox.com/ja-jp/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)

登録を解除するコールバックを識別するトークン。

*wait*   \_In\_\
型: bool

保留中のイベント コールバックが完了するのを待ちます。

### Return value

型: bool

*wait* が false で登録解除が保留中の場合、false を返します。それ以外の場合は true を返します。

## Remarks

> [!NOTE]
>
> この関数はタイム センシティブなスレッドで呼び出すのは安全ではありません。詳細については、[タイム センシティブなスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads) を参照してください。

この関数は、[XStoreGameLicenseChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregamelicensechangedcallback.md) によって定義されたコールバック関数の登録を解除します。コールバック関数の登録を解除するには、[XStoreRegisterGameLicenseChanged](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreregistergamelicensechanged.md) によって生成された同じ **XTaskQueueRegistrationToken** を使用します。メモリ リークを回避するため、[XStoreRegisterGameLicenseChanged](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreregistergamelicensechanged.md) で登録された関数は、コールバック関数が不要になった時点で **XStoreUnregisterGameLicenseChanged** によって登録解除する必要があります。

使用例については、[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md) を参照してください。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [タイム センシティブなスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XStoreRegisterGameLicenseChanged](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreregistergamelicensechanged.md)\
[XStoreGameLicenseChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregamelicensechangedcallback.md)


## Related topics

- [XStoreRegisterGameLicenseChanged](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreregistergamelicensechanged.md)
- [XStoreGameLicenseChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregamelicensechangedcallback.md)
- [XTaskQueueRegistrationToken](https://docs.xbox.com/ja-jp/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
