Returns the Target Service physical address.
#include <smstsapi.h> CCODE NWSMTSGetTargetServiceAddress ( UINT32 connection, STRING targetServiceName, UINT32 *addressType, STRING address);
(IN) Specifies the connection information returned by NWSMConnectToTSA.
(IN) Specifies the Target Service name returned by NWSMTSScanTargetServiceName or NWSMTSListTargetServices.
(OUT) Points to the physical address type of address.
(OUT) Returns the Target Service’s physical address in binary form.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSGetTargetServiceAddress is called, the engine must be connected to the TSA that has access to the specified Target Service.
The values that can be returned by addressType is listed in the following table
The engine must ensure that address is long enough to handle the protocol address.
char buffer[NWSM_MAX_TARGET_SRVC_NAME_LEN], addrBuffer[12]; STRING targetServiceName = buffer, address = addrBuffer; UINT32 addressType; /* Get target service name and copy it to targetServiceName. See the example code of NWSMTSScanTargetServiceName or NWSMTSListTargetServices. */ NWSMTSGetTargetServiceAddress(connection, targetServiceName, &addressType, address);