IWTSProtocolConnection::IsUserAllowedToLogon method (wtsprotocol.h)

[IWTSProtocolConnection::IsUserAllowedToLogon is no longer available for use as of Windows Server 2012. Instead, use IWRdsProtocolConnection::IsUserAllowedToLogon.]

Determines 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

An integer that contains the session ID associated with the user.

[in] UserToken

A pointer to the user token handle.

[in] pDomainName

A pointer to a string that contains the domain name for the user.

[in] pUserName

A pointer to a string that contains the user name.

Return value

None

Requirements

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

See also

IWTSProtocolConnection