Compartilhar via


XUserIsStoreUser

Checks if the XUser MSA is the same as the MSA signed into the Microsoft Store.

Syntax

bool XUserIsStoreUser(  
         XUserHandle user
)  

Parameters

user   _In_opt_
Type: XUserHandle

User handle.

Return value

Type: bool

Always returns true on console. On PC, it will return true only if the MSA of the XUser is same as the MSA signed into the Microsoft Store. On PC, if nobody is signed into the Microsoft Store, or if the two different MSA are signed in as the XUser and the Microsoft Store, it will return false.

Remarks

For details on how to properly use this function, refer to Handling mismatched store account scenarios on PC.

Requirements

Header: XUser.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XUser

Handling mismatched store account scenarios on PC