<div class="content" name="TSVIPAddress" uuid="eb4b65ab-dbfe-481d-b85f-7931ee38c2cc"><p>The <b>TSVIPAddress</b> structure defines a session&#39;s IP
address.</p><dl>
<dd>
<div><pre> typedef  struct  _TSVIPAddress {
     DWORD             dwVersion;   //Structure version
     TSVIP_SOCKADDR    IPAddress;    //IPv4 is in network byte order.
     ULONG             PrefixOrSubnetMask;    //IPv4 is a mask in network byte order,
 #ifdef  __midl                                //IPv6 is prefix length.
     [range(0, TSVIP_MAX_ADAPTER_ADDRESS_LENGTH)]  
       UINT            PhysicalAddressLength;
     [length_is(PhysicalAddressLength)] 
       BYTE  PhysicalAddress[TSVIP_MAX_ADAPTER_ADDRESS_LENGTH];
 #else
     UINT              PhysicalAddressLength;
     BYTE              PhysicalAddress[TSVIP_MAX_ADAPTER_ADDRESS_LENGTH];
 #endif
     ULONG             LeaseExpires;
     ULONG             T1;
     ULONG             T2;
 }  TSVIPAddress,
    *PTSVIPAddress;
</pre></div>
</dd></dl><p><b>dwVersion:</b>  Specifies the current
TSVIPAddress structure version. This field MUST be set to 0x01, the only
supported version.</p><p><b>IPAddress:</b>  Specifies the IP
address.</p><p><b>PrefixOrSubnetMask:</b>  Subnet mask of
the IP address.</p><p><b>PhysicalAddressLength:</b>  Number of
bytes in the <b>PhysicalAddress</b>.</p><dl>
<dd>
<p>Where TSVIP_MAX_ADAPTER_ADDRESS_LENGTH is defined as</p>
<dl>
<dd>
<div><pre> #define   TSVIP_MAX_ADAPTER_ADDRESS_LENGTH    16
</pre></div>
</dd></dl></dd></dl><p><b>PhysicalAddress:</b>  The MAC address
used to acquire the IP address.</p><p><b>LeaseExpires:</b>  The lease expiration
time for the IP address. </p><p><b>T1:</b>  The time at which a request to
renew the IP address will be made.</p><p><b>T2:</b>  Not used.</p></div>