public:
HRESULT AddSponsoredUser(
UINT32 *pUserId
)
pUserId
Type: UINT32 *
On successful completion, points to the User ID of the guest user.
Type: HRESULT
HRESULT success or error code.
Guest users are associated with an already signed-in account. When your code calls AddSponsoredUser, the system picks a signed-in user to be the sponsor and continues to use that user for all subsequent sponsored users. If that user gets signed out, all sponsored users are signed out at that time.
Header: Declared in xtfuser.h.
Library: Use xtfuser.lib.