Connects the backup engine to a TSA.
#include <smstsapi.h> CCODE NWSMConnectToTSA ( STRING tsaName, UINT32 *connection);
(IN) Specifies the name of the TSA to connect to returned by NWSMListTSAs.
(OUT) Points to the connection information used for connecting to and getting information about the Target Service.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
After connecting to the TSA, the engine can access only information about the Target Service. To get information about the target, see NWSMTSGetTargetServiceType. To access the target data, see NWSMTSConnectToTargetService.
An engine can have one or more concurrent connections to one or more TSAs. For each connection, the engine must call NWSMConnectToTSA once.
NOTE:The internal primary resource list is created when NWSMConnectToTSA is called.
NWSMTSConnectToTargetService, NWSMTSConnectToTargetServiceEx, NWSMTSListTargetServices, NWSMReleaseTSA
UINT32 connection; STRING TSAName; /* Find a TSA to connect to-see NWSMListTSAs. */ NWSMConnectToTSA(TSAName, &connection); /* Find a Target Service through the connected TSA-see NWSMTScanTargetServiceName and NWSMTSListTargetServiceName. */ /* Connect to the target-see NWSMTSConnectToTargetService or NWSMTSConnectToTargetServiceEx . */