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

# XUserIsStoreUser

> XUserIsStoreUser

# XUserIsStoreUser

XUser の MSA が Microsoft Store にサインインしている MSA と同じかどうかを確認します。

## 構文

```cpp theme={null}
bool XUserIsStoreUser(  
         XUserHandle user
)  
```

### パラメーター

*user*   \_In\_opt\_\
Type: XUserHandle

ユーザー ハンドルです。

### 戻り値

Type: bool

本体では常に true を返します。PC では、XUser の MSA が Microsoft Store にサインインしている MSA と同じ場合のみ true を返します。PC で、Microsoft Store に誰もサインインしていない場合、または XUser と Microsoft Store に異なる 2 つの MSA がサインインしている場合は、false を返します。

## 解説

この関数を適切に使用する方法の詳細については、
[PC でのストア アカウント不一致シナリオの処理](/publishing/xstore-commerce/xstore-pc) を参照してください。

## 要件

**ヘッダー:** XUser.h

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

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

## 概念ドキュメント

* [PC でのストア アカウント不一致シナリオの処理](/publishing/xstore-commerce/xstore-pc)

## 関連項目

[XUser](/reference/system/xuser/xuser_members)

[PC でのストア アカウント不一致シナリオの処理](/publishing/xstore-commerce/xstore-pc)


## Related topics

- [PC 上での Store アカウントが一致しないシナリオの処理](/ja-jp/publishing/xstore-commerce/xstore-mismatched-accounts.md)
- [PC 上の XStore — DRM、ライセンス トークン、サンドボックス](/ja-jp/publishing/xstore-commerce/xstore-pc.md)
- [XUser](/ja-jp/reference/system/xuser/xuser_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreGetUserCollectionsIdResult](/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md)
