<div class="content"><p> </p><p>The I_BrowserrQueryOtherDomains method is received by the
server in an RPC_REQUEST packet. The <span><a href="48f4ceaf-3cd0-4964-a964-2f4682b8d2f0#gt_60e0e1fa-66fe-41e1-b5e3-ceab97e53506" data-linktype="relative-path">client</a></span> SHOULD NOT
send this RPC request to a server that is not a <span><a href="48f4ceaf-3cd0-4964-a964-2f4682b8d2f0#gt_663cb13a-8b75-477f-b6e1-bea8f2fba64d" data-linktype="relative-path">primary domain controller (PDC)</a></span>
acting as the <span><a href="48f4ceaf-3cd0-4964-a964-2f4682b8d2f0#gt_ef026994-26e6-4c9d-b34b-dfb7f1f80d6f" data-linktype="relative-path">domain master browser server</a></span>.</p><p>If this server is not a primary domain controller it MAY
fail the request.<a id="Appendix_A_Target_3"></a><a aria-label="Product behavior note 3" href="59ffe052-71a7-4dc7-8ec2-cebeb93c30f3#Appendix_A_3" data-linktype="relative-path">&lt;3&gt;</a></p><p>If the server is a primary domain controller, the server
MUST update <b>OtherDomains</b> as specified in <span><a href="../ms-wkst/5bb08058-bc36-4d3c-abeb-b132228281b7" data-linktype="relative-path">[MS-WKST]</a></span>
section <span><a href="../ms-wkst/20239702-fc97-4911-955f-e34c765c69fe" data-linktype="relative-path">3.2.6.1</a></span>,
WkstaQueryOtherDomains Event. The server MUST construct a SERVER_ENUM structure
as specified in <span><a href="19f5d6ee-8cdc-4b99-b92f-ada48d9ba95b" data-linktype="relative-path">2.2.3.2</a></span>, containing
a SERVER_INFO_100 structure as specified in <span><a href="../ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2" data-linktype="relative-path">[MS-DTYP]</a></span>
section <span><a href="../ms-dtyp/007c654b-7d78-49d4-9f4d-0da7c1889727" data-linktype="relative-path">2.3.11</a></span>
for each name in <b>OtherDomains</b>, and return this to the caller.</p><dl>
<dd>
<div><pre> NET_API_STATUS I_BrowserrQueryOtherDomains(
   [in, string, unique] BROWSER_IDENTIFY_HANDLE ServerName,
   [in, out] LPSERVER_ENUM_STRUCT InfoStruct,
   [out] LPDWORD TotalEntries
 );
</pre></div>
</dd></dl><p><b>ServerName: </b>An optional <span><a href="36c12449-8244-47d5-86b2-366deaee5043" data-linktype="relative-path">BROWSER_IDENTIFY_HANDLE</a></span>
structure that specifies the name of the server to execute the method. This
value is ignored upon receipt.</p><p><b>InfoStruct: </b>A pointer to a SERVER_ENUM_STRUCT
structure that contains the <b>Level</b> member and a pointer to a
SERVER_INFO_x structure, where &lt;x&gt; MUST be 100. The <b>Level</b> member
MUST be set to 100. If the <b>Level</b> member is set to any other value, the
method MUST return ERROR_INVALID_LEVEL.<a id="Appendix_A_Target_4"></a><a aria-label="Product behavior note 4" href="59ffe052-71a7-4dc7-8ec2-cebeb93c30f3#Appendix_A_4" data-linktype="relative-path">&lt;4&gt;</a></p><p><b>TotalEntries: </b>The number of entries returned
by the method call. This parameter MUST match the <b>EntriesRead</b> member of
the <span><a href="de65e9a3-06dc-4bbd-a442-e63f06765489" data-linktype="relative-path">SERVER_INFO_100_CONTAINER</a></span>
structure.</p><p><b>Return Values: </b>The method returns NERR_Success
on success; otherwise, it returns a nonzero error code, as specified in either <span><a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">Win32 Error
Codes</a></span>. The most common error codes are listed in the following
table.<a id="Appendix_A_Target_5"></a><a aria-label="Product behavior note 5" href="59ffe052-71a7-4dc7-8ec2-cebeb93c30f3#Appendix_A_5" data-linktype="relative-path">&lt;5&gt;</a></p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>NERR_Success</p>
  </td>
  <td>
  <p>The operation completed successfully.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x00000005</p>
  <p>ERROR_ACCESS_DENIED</p>
  </td>
  <td>
  <p>Access is denied.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x00000008</p>
  <p>ERROR_NOT_ENOUGH_MEMORY</p>
  </td>
  <td>
  <p>This value MUST be returned when the server could not
  allocate enough memory to complete this operation.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x00000057</p>
  <p>ERROR_INVALID_PARAMETER</p>
  </td>
  <td>
  <p>This value MUST be returned when a parameter is
  incorrect. For example, this value is returned when the <i>InfoStruct</i>
  parameter is NULL or the <b>Level100</b> member in the structure pointed to
  by the <i>InfoStruct</i> parameter is NULL.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x0000007C</p>
  <p>ERROR_INVALID_LEVEL</p>
  </td>
  <td>
  <p>This value MUST be returned when the <b>Level</b>
  member is not 100.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x000000EA</p>
  <p>ERROR_MORE_DATA</p>
  </td>
  <td>
  <p>The error ERROR_MORE_DATA indicates that not all
  available entries were returned. Some more entries exist which were not
  returned in the response.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p> </p></div>