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

# XStoreUnregisterGameLicenseChanged

> XStoreUnregisterGameLicenseChanged

# XStoreUnregisterGameLicenseChanged

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

## Syntax

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

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) によって返されたユーザーのストア コンテキスト ハンドル。

*token*   \_In\_\
型: [XTaskQueueRegistrationToken](/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

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

*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) を参照してください。</Note>

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

使用例については、[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) を参照してください。

## 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](/reference/system/xstore/xstore_members)\
[XStoreRegisterGameLicenseChanged](/reference/system/xstore/functions/xstoreregistergamelicensechanged)\
[XStoreGameLicenseChangedCallback](/reference/system/xstore/functions/xstoregamelicensechangedcallback)


## Related topics

- [XStoreRegisterGameLicenseChanged](/ja-jp/reference/system/xstore/functions/xstoreregistergamelicensechanged.md)
- [XStoreGameLicenseChangedCallback](/ja-jp/reference/system/xstore/functions/xstoregamelicensechangedcallback.md)
- [XTaskQueueRegistrationToken](/ja-jp/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
