IWRdsProtocolConnection::IsUserAllowedToLogon method (wtsprotocol.h)

Determines from the protocol whether a user is allowed to log on to a session.

Syntax

HRESULT IsUserAllowedToLogon(
  [in] ULONG      SessionId,
  [in] HANDLE_PTR UserToken,
  [in] WCHAR      *pDomainName,
  [in] WCHAR      *pUserName
);

Parameters

[in] SessionId

The session identifier.

[in] UserToken

A handle that represents the user token.

[in] pDomainName

A pointer to a null-terminated string that contains the user's domain name.

[in] pUserName

A pointer to a null-terminated string that contains the user name.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header wtsprotocol.h

See also

IWRdsProtocolConnection