KSC Open API
Kaspersky Security Center API description
GatewayConnection::CloseHybridGatewayConnectionToSecondaryServerPort ( wstring  szwTSessionId)

Close hybrid gateway connection created in PrepareHybridGatewayConnectionToSecondaryServerPort.

Parameters:
[in]szwTSessionIdHybrid session identifier returned by PrepareHybridGatewayConnectionToSecondaryServerPort.