ITSGAuthenticateUserSink::ReauthenticateUser method

Notifies Remote Desktop Gateway (RD Gateway) that it should silently reauthenticate and reauthorize the user.

Syntax

HRESULT ReauthenticateUser(
  ULONG_PTR context
);

Parameters

context

A pointer to a ULONG that contains a value specific to this connection. 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

When this method is called, RD Gateway silently attempts to reauthenticate and reauthorize the user. If the attempt fails, it disconnects the user. The authentication plug-in can use this method to periodically reauthenticate the user as needed.

Examples

For an example that uses the ReauthenticateUser method, see Remote Desktop Gateway Pluggable Authentication and Authorization Sample.

Requirements

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

See Also

ITSGAuthenticateUserSink