<div class="content" name="WINSINTF_RECORD_ACTION_T" uuid="2772ceb8-1b9f-4766-84e2-af6453f8ba2c"><p>The WINSINTF_RECORD_ACTION_T structure defines a <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_bafb050b-b593-4517-8093-f721bd2378ac" data-linktype="relative-path">WINS</a> database record and
the action to be performed on it. The structure <a href="cbac7a9a-0b9a-449c-96c3-d51261c95650" data-linktype="relative-path">WINSINTF_RECS_T (section 2.2.2.8)</a>
and the <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> method <a href="4f811c36-56e2-4058-a7ec-8ee6d937f608" data-linktype="relative-path">R_WinsRecordAction (section 3.1.4.1)</a>
both use this structure.</p><dl>
<dd>
<div><pre> typedef struct _WINSINTF_RECORD_ACTION_T {
   WINSINTF_ACT_E Cmd_e;
   [size_is(NameLen + 1)] LPSTR pName;
   DWORD NameLen;
   DWORD TypOfRec_e;
   DWORD NoOfAdds;
   [unique, size_is(NoOfAdds)] PWINSINTF_ADD_T pAdd;
   WINSINTF_ADD_T Add;
   LARGE_INTEGER VersNo;
   BYTE NodeTyp;
   DWORD OwnerId;
   DWORD State_e;
   DWORD fStatic;
   DWORD_PTR TimeStamp;
 } WINSINTF_RECORD_ACTION_T,
  *PWINSINTF_RECORD_ACTION_T;
</pre></div>
</dd></dl><p><b>Cmd_e:</b>  A <a href="ebbae7e3-eb34-47e1-91be-06d40370559d" data-linktype="relative-path">WINSINTF_ACT_E</a> enumeration
(section 2.2.1.4) value that specifies the action to be performed on the
specified record.</p><p><b>pName:</b>  A pointer to a
NULL-terminated string that contains the <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_0334e0bd-2755-42f6-aeff-2d4a22bf4abf" data-linktype="relative-path">NetBIOS name</a> and optionally
the <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_219f79c8-11bc-41f7-b06b-134566d2f5fc" data-linktype="relative-path">NetBIOS scope</a> name
of the record. The NetBIOS scope name, if present, is appended to the NetBIOS
name with a dot character &#34;.&#34;.</p><dl>
<dd>
<p>If the NetBIOS name contains fewer than 16
characters, space characters MUST be used to pad the name string up to the <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_e0056bac-be0a-488d-86b2-eec9c6bfb947" data-linktype="relative-path">NetBIOS suffix</a>, which occupies
the 16th character position.</p>
</dd></dl><p><b>NameLen:</b>  The length of the string
that <i>pName</i> points to. It has the following possible values:</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>16</td>
  <td>The pName value points to a string that contains only the NetBIOS name of the record. The NameLen value does not include the terminating NULL character.</td>
 </tr><tr>
  <td>18 &lt; value</td>
  <td>The pName value points to a string that contains the NetBIOS name, a dot character &#34;.&#34;, and the NULL-terminated NetBIOS scope name of the record. The NameLen value includes the terminating NULL character. If the NameLen value is greater than 255, the pName string SHOULD be truncated to 254 characters plus a terminating NULL character.</td>
 </tr></tbody></table>
</dd></dl><p><b>TypOfRec_e:</b>  The record type. Only
the two least-significant bits of the member value are considered valid. All
other bits are masked with zero. The following values are allowed.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0</td>
  <td>Unique name</td>
 </tr><tr>
  <td>1</td>
  <td>Normal group name</td>
 </tr><tr>
  <td>2</td>
  <td>Special group name</td>
 </tr><tr>
  <td>3</td>
  <td>Multihomed machine name</td>
 </tr></tbody></table>
</dd></dl><p><b>NoOfAdds:</b>  The number of IP
addresses that are mapped to the NetBIOS name given in <i>pName</i>. It SHOULD
have the value zero for unique names and <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_6e5a97b1-d09e-4ca3-8d54-00517f81fc16" data-linktype="relative-path">normal groups</a>, and it
SHOULD have a value greater than 0x00000001 for other types of records.</p><p><b>pAdd:</b>  A pointer to an array of IP
addresses that are mapped to the name given in <i>pName</i>. It MUST be used
only for <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_dc10c383-6b39-433e-b8da-81e3b8471e39" data-linktype="relative-path">multihomed (2)</a>
and <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_09607598-4e99-4144-bc61-a9b5ad002075" data-linktype="relative-path">special group</a> types
of records.</p><p><b>Add:</b>  The IP address mapped to the
name given in <i>pName</i>. This member MUST be used only for unique and normal
group types of records.</p><p><b>VersNo:</b>  The version number of the
record.</p><p><b>NodeTyp:</b>  The <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_9ae937eb-c613-45e1-be47-7354d5554795" data-linktype="relative-path">NetBT node type</a>. Only the
two least-significant bits of the member value are considered valid. All other
bits are masked with zero. This member MUST have one of the following values:</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0</td>
  <td>B-node</td>
 </tr><tr>
  <td>1</td>
  <td>P-node</td>
 </tr><tr>
  <td>2</td>
  <td>M-node</td>
 </tr><tr>
  <td>3</td>
  <td>H-node</td>
 </tr></tbody></table>
</dd></dl><p><b>OwnerId:</b>  The <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_fd7218ec-39b0-4372-bf4c-9ddfba81cb9e" data-linktype="relative-path">owner</a> IP address of the
record, in <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_079478cb-f4c5-4ce5-b72b-2144da5d2ce7" data-linktype="relative-path">little-endian</a>
byte order.</p><p><b>State_e:</b>  The state of the record.
Only the two least-significant bits of the member value are considered valid.
All other bits are masked with zero. This member MUST have one of the following
values:</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0</td>
  <td>Active record</td>
 </tr><tr>
  <td>1</td>
  <td>Released record</td>
 </tr><tr>
  <td>2</td>
  <td>Tombstoned record</td>
 </tr><tr>
  <td>3</td>
  <td>Deleted record</td>
 </tr></tbody></table>
</dd></dl><p><b>fStatic:</b>  A value that indicates
whether the record is static or dynamic. A value of 0 indicates a <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_75e3d6b5-f719-46ba-8c4b-58e96ec1d5c9" data-linktype="relative-path">dynamic record</a>, and 1
indicates a <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_7be2dd69-686c-4dbe-a5fb-0f4ca082b717" data-linktype="relative-path">static record</a>.
Only the least-significant bit is considered valid. All other bits are masked
with zero.</p><p><b>TimeStamp:</b>  The time stamp <a href="https://go.microsoft.com/fwlink/?LinkId=89920" data-linktype="external">[ISO-8601]</a> of the
record.</p></div>