IXtfUserClient::AddUser Method

Adds a user without signing them in.

Syntax

public:
HRESULT AddUser(
         LPCWSTR emailAddress,
         UINT32 *pUserId
)  

Parameters

emailAddress
Type: LPCWSTR 

The email address of the user to be added.

pUserId
Type: UINT32 *

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

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in xtfuser.h.

Library: Use xtfuser.lib.