IWRdsProtocolConnection::IsUserAllowedToLogon method
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
- SessionId [in]
-
The session identifier.
- UserToken [in]
-
A handle that represents the user token.
- pDomainName [in]
-
A pointer to a null-terminated string that contains the user's domain name.
- pUserName [in]
-
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
|
Minimum supported client |
None supported |
|---|---|
|
Minimum supported server |
Windows Server 2012 |
|
IDL |
|
See also
Show: