ITsSbTarget::IpAddresses property

Retrieves or specifies the external IP addresses of the target.

This property is read/write.

Syntax

HRESULT put_IpAddresses(
  [in, size_is(numAddresses)]   TSSD_ConnectionPoint *sockaddr,
  [in]                          DWORD                numAddresses
);

HRESULT get_IpAddresses(
  [out, size_is(*numAddresses)] TSSD_ConnectionPoint *sockaddr,
  [in, out]                     DWORD                *numAddresses
);

Property value

A pointer to an array of TSSD_ConnectionPoint structures that receive the external IP addresses of the target.

A pointer to a DWORD variable that contains the number of external IP addresses in the sockaddr parameter. If the number of addresses is unknown, pass sockaddr as NULL. The method will return the number of TSSD_ConnectionPoint structures necessary to allocate in the array pointed to by the sockaddr parameter.

Remarks

This property was formerly known as TargetExternalIpAddresses in Windows Server 2008 R2.

If the number of external IP addresses is unknown, you can call this method with sockaddr set to NULL. The method will then return, in the numAddresses parameter, the number of TSSD_ConnectionPoint structures necessary to receive all the external IP addresses. Allocate the array for sockaddr based on this number, and then call the method again, setting sockaddr to the newly allocated array and numAddresses to the number returned by the first call.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
IDL
Sbtsv.idl
IID
IID_ITsSbTarget is defined as:
  • 16616ECC-272D-411D-B324-126893033856
  • e85e10ea-db0b-4752-b456-5fd5840901c0 on Windows Server 2008 R2

See also

ITsSbTargetEx

ITsSbTarget

TSSD_ConnectionPoint