Stops the scan started by NWSMTSScanDataSetBegin.
#include <smstsapi.h> CCODE NWSMTSScanDataSetEnd UINT32 connection, UINT32 *sequence, NWSM_SCAN_INFORMATION **scanInformation, NWSM_DATA_SET_NAME_LIST **dataSetNames);
(IN) Specifies the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServiceEx.
(IN/OUT) Inputs a pointer to the sequence value returned by NWSMTSScanDataSetBegin or NWSMTSScanNextDataSet. Outputs zero.
(IN/OUT) Inputs a pointer to the memory to be freed. Outputs NULL.
(IN/OUT) Inputs a pointer to the memory to be freed. Outputs NULL.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSScanDataSetEnd is called, NWSMTSScanDataSetBegin must be called to initiated a scan.
NWSMTSScanDataSetEnd stops a scan prematurely. Do not call NWSMTSScanDataSetEnd if NWSMTSScanDataSetBegin or NWSMTSScanNextDataSet returns an error.
See the example for NWSMTSScanDataSetBegin.