Updates the TSA's internal list of primary resources.
#include <smstsapi.h> CCODE NWSMTSBuildResourceList ( UINT32 connection);
(IN) Specifies the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServicEx.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSBuildResourceList is called, the engine must be connected to a TSA and Target Service.
The engine calls NWSMTSBuildResourceList to ensure the TSA's resource list is up-to-date. The TSA will only scan what is in its internal primary resource list. If a virtual NCP server name is selected, the list of primary resources in the pool associated with the virtual NCP server is built. If a node name is selected, the list of non-cluster resources on the server will be built.
Do not call NWSMTSBuildResourceList if there are any active scans or if NWSMTSOpenDataSetForRestore still has data sets open.