ITSGAuthenticateUserSink::DisconnectUser method

Notifies Remote Desktop Gateway (RD Gateway) that it should disconnect the client.

Syntax

HRESULT DisconnectUser(
  ULONG_PTR context
);

Parameters

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

   
Windows version Windows 7 Windows Server 2008 R2
Target Platform Windows
Header tsgauthenticationengine.h

See Also

AuthenticateUser

ITSGAuthenticateUserSink