IWTSProtocolConnection::IsUserAllowedToLogon method

[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

SessionId [in]

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

UserToken [in]

A pointer to the user token handle.

pDomainName [in]

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

pUserName [in]

A pointer to a string that contains the user name.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

End of server support

Windows Server 2008 R2

Header

Wtsprotocol.h

IDL

Wtsprotocol.idl

See also

IWTSProtocolConnection

 

 

Show: