IXtfUserClient::AddSponsoredUser Method

Add a guest user.

Syntax

public:
HRESULT AddSponsoredUser(
         UINT32 *pUserId
)  

Parameters

pUserId
Type: UINT32 *

On successful completion, points to the User ID of the guest user.

Return value

Type: HRESULT 

HRESULT success or error code.

Remarks

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.

Requirements

Header: Declared in xtfuser.h.

Library: Use xtfuser.lib.