<div class="content"><p>The <b>RASI_CONNECTION_0</b> structure contains general
information regarding a specific connection, such as username or domain.  </p><dl>
<dd>
<div><pre> typedef struct _RASI_CONNECTION_0 {
   DWORD dwConnection;
   DWORD dwInterface;
   DWORD dwConnectDuration;
   ROUTER_INTERFACE_TYPE dwInterfaceType;
   DWORD dwConnectionFlags;
   WCHAR wszInterfaceName[257];
   WCHAR wszUserName[257];
   WCHAR wszLogonDomain[16];
   WCHAR wszRemoteComputer[17];
 } RASI_CONNECTION_0,
  *PRASI_CONNECTION_0;
</pre></div>
</dd></dl><p><b>dwConnection: </b>Contains the connection handle
that specifies a unique identifier of the connection.</p><p><b>dwInterface: </b>Contains the interface handle and
specifies a unique identifier of the interface through which the connection
exists.</p><p><b>dwConnectDuration: </b>Specifies the duration of
the current connection, in seconds.</p><p><b>dwInterfaceType: </b>A <b>ROUTER_INTERFACE_TYPE</b>
(section <a href="849c1f9e-9d6f-4408-840e-ee9ae253ae01" data-linktype="relative-path">2.2.1.1.1</a>)
value specifying the interface type of the current connection.</p><p><b>dwConnectionFlags: </b>Specifies certain
attributes of the connection. This member can contain the following flags.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>RAS_FLAGS_PPP_CONNECTION</p>
  <p>0x00000001</p>
  </td>
  <td>
  <p>The connection is using PPP.</p>
  </td>
 </tr><tr>
  <td>
  <p>RAS_FLAGS_MESSENGER_PRESENT</p>
  <p>0x00000002</p>
  </td>
  <td>
  <p>The messenger service is active on the client, and
  messages can be sent to the client using <a href="31cf599a-c62a-42ff-9bad-bc52be459439" data-linktype="relative-path"><b>RRasAdminSendUserMessage (section 3.1.4.36)</b></a>.
  </p>
  </td>
 </tr><tr>
  <td>
  <p>RAS_FLAGS_RAS_CONNECTION</p>
  <p>0x00000004</p>
  </td>
  <td>
  <p>The connection is a NetBIOS connection.</p>
  </td>
 </tr><tr>
  <td>
  <p>RAS_FLAGS_QUARANTINE_PRESENT</p>
  <p>0x00000008</p>
  </td>
  <td>
  <p>The connection is currently in quarantine. See <a href="30a29384-99b1-43df-bc67-554d5121c555" data-linktype="relative-path"><b>RRasAdminConnectionRemoveQuarantine (section 3.1.4.43)</b></a>
  for more information. </p>
  </td>
 </tr><tr>
  <td>
  <p>RAS_FLAGS_ARAP_CONNECTION</p>
  <p>0x00000010</p>
  </td>
  <td>
  <p>The connection is using AppleTalk Remote Access
  Protocol (ARAP).<a id="Appendix_A_Target_59"></a><a aria-label="Product behavior note 59" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_59" data-linktype="relative-path">&lt;59&gt;</a></p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>wszInterfaceName: </b>Specifies a null-terminated
Unicode string that contains the name of the interface for this connection. </p><p><b>wszUserName: </b>Specifies a null-terminated
Unicode string that contains the name of the user logged on to the connection.</p><p><b>wszLogonDomain: </b>Specifies a null-terminated
Unicode string that contains the domain on which the connected user is
authenticated.</p><p><b>wszRemoteComputer: </b>Specifies a null-terminated
Unicode string that contains the name of the remote computer.</p></div>