ITSGAuthenticateUserSink::DisconnectUser method (tsgauthenticationengine.h)
Notifies Remote Desktop Gateway (RD Gateway) that it should disconnect the client.
Syntax
HRESULT DisconnectUser(
[in] ULONG_PTR context
);
Parameters
[in] context
A pointer to a ULONG that contains a value that identifies the connection to disconnect. Use the value that was passed by the AuthenticateUser method.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The authentication plug-in can use this method to disconnect the client as needed. For example, it can call this method if the client's cookie expires.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | tsgauthenticationengine.h |