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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for