ITSGAuthenticationEngine::CancelAuthentication method (tsgauthenticationengine.h)
Cancels an existing authentication request.
Remote Desktop Gateway (RD Gateway) calls this method when the user who initiated the connection terminates the connection, or when the connection fails.
Syntax
HRESULT CancelAuthentication(
[in] GUID mainSessionId,
[in] ULONG_PTR context
);
Parameters
[in] mainSessionId
An identifier assigned to the connection request.
[in] context
A pointer to a ULONG that contains a value that identifies this connection. This value should be passed back to RD Gateway by using the methods of the ITSGAuthenticateUserSink interface.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | tsgauthenticationengine.h |