NWSMTSReleaseTargetService

Closes the connection between an engine and a Target Service.

Syntax

  #include <smstsapi.h> 
   
  CCODE NWSMTSReleaseTargetService (
     UINT32  *connection);
  

Parameters

connection

(IN) Points to the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServicEx.

Return Values

See Section 9.3, Target Service Return Values for more information.

The following table lists the return values associated with the function.

0x00000000

Successful

0xFFFDFFB9

NWSMTS_UNSUPPORTED_FUNCTION

0xFFFDFFD6

NWSMTS_LOGOUT_ERROR

0xFFFDFFE7

NWSMTS_INVALID_CONNECTION_HANDL

0xFFFEFFFF

NWSMDR_INVALID_CONNECTION

Remarks

Before NWSMTSReleaseTargetService is called, the engine must be connected to the TSA.

NWSMTSReleaseTargetService cleans up the internal environment, releases a connection between the engine and the Target Service, and deletes the error log and skipped log files created by the TSA.

See Also

NWSMTSConnectToTargetService, NWSMTSConnectToTargetServiceEx