<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/3f0ee444-a18e-4eb0-806a-a718ca7d1c13" data-linktype="external">msdn link</a></p><p>The <b>BATCH_UPDATE_COMMAND</b> is a stream of bytes that
describes an individual update to be applied to the cluster registry or
returned from a call to <b>ApiExecuteReadBatch</b> (section <a href="9b868f2d-5bb9-4d44-8504-23a4673737f1" data-linktype="relative-path">3.1.4.2.141</a>). It defines
two variable-length fields, Name and Data, that MUST be present in the stream
if their associated length fields are nonzero. The end of each structure is
aligned to a 16-bit boundary.</p><p>The <b>BATCH_UPDATE_COMMAND</b> is a custom-marshaled
structure that has fields as follows.</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">
  <p>CommandType</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>ValueType</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>NameLength</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>Name
  (variable)</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>...</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>DataLength</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>Data
  (variable)</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>...</p>
  </td>
 </tr>
 <tr>
  <td colspan="8">
  <p>Padding
  (optional)</p>
  </td>
  
 </tr>
</tbody></table><p><b>CommandType (4 bytes): </b>An unsigned 32-bit
integer. A <b>CLUSTER_REG_BATCH_COMMAND</b> (section <a href="85bfd283-d97f-4ead-8b11-9dfe2c3103dd" data-linktype="relative-path">2.2.2.8</a>) enumeration value
that indicates the type of update operation.</p><p><b>ValueType (4 bytes): </b>An unsigned 32-bit
integer. The <b>ValueType</b> field MUST be set to one of the types specified
in <b>ApiSetValue </b>(section <a href="c9b65b96-12b9-4da6-b570-4902a7c707e4" data-linktype="relative-path">3.1.4.2.33</a> when the <b>CommandType</b>
field is set to CLUSREG_SET_VALUE or CLUSREG_READ_VALUE. If <b>CommandType</b>
is set to CLUSREG_READ_ERROR, the value is a status code. Otherwise, the field
is ignored. The <a href="694e5e7a-5833-4f3d-b47e-323ee1d452c2#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a>
SHOULD support all values as specified in <b>ApiSetValue</b>.<a id="Appendix_A_Target_25"></a><a aria-label="Product behavior note 25" href="1d58eff8-a042-478c-972c-8e9c76a3f978#Appendix_A_25" data-linktype="relative-path">&lt;25&gt;</a></p><p><b>NameLength (4 bytes): </b>An unsigned 32-bit
integer indicating the size, in bytes, of the string stored in the Name field.
Minimum value is two, indicating the Name field contains the null <a href="694e5e7a-5833-4f3d-b47e-323ee1d452c2#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode string</a> (0x0000).</p><p><b>Name (variable): </b>A variable-length,
null-terminated Unicode string containing the name of the key or value on which
the command is executed.</p><p><b>DataLength (4 bytes): </b>An unsigned 32-bit
integer indicating the size, in bytes, of the binary data stored in the Data
field. Can be zero.</p><p><b>Data (variable): </b>A variable-length series of
8-bit integers containing the data associated with a CLUSREG_SET_VALUE
operation. This field is not present if the DataLength field is set to zero.</p><p><b>Padding (1 byte): </b>Up to 1 byte. A
variable-length series of zero or one 8-bit integers used to align the end of
the structure to a 16-bit boundary. This field is not present if the DataLength
field is of even length.</p></div>