<div class="content"><p>The <b>RMprAdminServerSetInfo</b> method<a id="Appendix_A_Target_316"></a><a aria-label="Product behavior note 316" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_316" data-linktype="relative-path">&lt;316&gt;</a> sets ports information on a
specified server <i>hDimServer</i>.</p><dl>
<dd>
<div><pre> DWORD RMprAdminServerSetInfo(
   [in] DIM_HANDLE hDimServer,
   [in] DWORD dwLevel,
   [in] PDIM_INFORMATION_CONTAINER pInfoStruct
 );
</pre></div>
</dd></dl><p><b>hDimServer: </b>A handle to the RRASM server where
the call is to be executed, see section <a href="1f8cdbcc-9791-4a35-ad78-878b8d110e15" data-linktype="relative-path">3.1.3</a>.</p><p><b>dwLevel: </b>This is of type <b>DWORD</b> and MUST
be set to any 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>
  <p>1</p>
  </td>
  <td>
  <p>pInfoStruct-&gt;pBuffer MUST be a pointer to a <a href="12ffcd88-5613-4ccb-ba5c-c281aec368cb" data-linktype="relative-path">MPR_SERVER_1 (section 2.2.1.2.62)</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>2</p>
  </td>
  <td>
  <p>pInfoStruct-&gt;pBuffer MUST be a pointer to a <a href="7f9bfc09-26be-42e8-83d0-fe4ebf384abe" data-linktype="relative-path">MPR_SERVER_2 (section 2.2.1.2.63)</a>.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>pInfoStruct: </b>This is a pointer of type <a href="95609dbb-56aa-4b1b-a0e2-697864a141bd" data-linktype="relative-path"><b>PDIM_INFORMATION_CONTAINER (section 2.2.1.2.1)</b></a>
and MUST be set to the following, based on <i>dwLevel</i>. </p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>dwLevel</p>
   </th>
   <th>
   <p>pInfoStruct-&gt;size</p>
   </th>
   <th>
   <p>pInfoStruct-&gt;pBuffer</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>1</p>
  </td>
  <td>
  <p>This MUST be set to the size of
  MPR_SERVER_1 (section 2.2.1.2.62).</p>
  </td>
  <td>
  <p>This MUST be set to a pointer to a
  MPR_SERVER_1 (section 2.2.1.2.62). </p>
  </td>
 </tr><tr>
  <td>
  <p>2</p>
  </td>
  <td>
  <p>This MUST be set to the size of
  MPR_SERVER_2 (section 2.2.1.2.63).</p>
  </td>
  <td>
  <p>This MUST be set to a pointer to a
  MPR_SERVER_2 (section 2.2.1.2.63).</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>Return Values: </b>A 32-bit, unsigned integer
value that indicates return status. A return value of ERROR_SUCCESS
(0x00000000) indicates that the operation was completed successfully; otherwise,
the value contains an error code, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
or in section <a href="5c0c991a-0d3d-4fe5-9503-5128d0d49fe1" data-linktype="relative-path">2.2.4</a>.
All values that are not listed in the table that follows MUST be treated the
same by the RRASM client. </p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>ERROR_SUCCESS</p>
  <p>0x00000000</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_ACCESS_DENIED</p>
  <p>0x00000005</p>
  </td>
  <td>
  <p>The calling application does not have sufficient
  privileges.</p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_SUCCESS_REBOOT_REQUIRED</p>
  <p>0x00000BC2</p>
  </td>
  <td>
  <p>A system reboot is required for such a change to take
  effect.<a id="Appendix_A_Target_317"></a><a aria-label="Product behavior note 317" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_317" data-linktype="relative-path">&lt;317&gt;</a></p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The opnum field value for this method is 43.</p><p>When processing this call, the RRASM server MUST do the
following:</p><ul><li><p><span><span> 
</span></span>Validate, as specified in <a href="9373431f-ed29-4639-9f8b-743267c9f9b6" data-linktype="relative-path">2.1.1.1</a>, whether this
method was called by a client that has access to the method. If the client does
not have access, then return error ERROR_ACCESS_DENIED.</p>
</li><li><p><span><span> 
</span></span>If <i>pInfoStruct</i> is NULL, return an error other than those
in the preceding table.</p>
</li><li><p><span><span> 
</span></span>If <i>dwLevel</i> is not supported, return an error other than
one of the errors listed in the preceding table.</p>
</li><li><p><span><span> 
</span></span>Call the abstract interface <b>Invoke DIMSVC</b> method specifying
the operation and the parameters to enable RRAS server to perform the required
management task.</p>
</li><li><p><span><span> 
</span></span>If the RRAS server completes the processing successfully return
either ERROR_SUCCESS or ERROR_SUCCESS_REBOOT_REQUIRED<a id="Appendix_A_Target_318"></a><a aria-label="Product behavior note 318" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_318" data-linktype="relative-path">&lt;318&gt;</a> based on the impact of the
configuration change as indicated by the RRAS server. Otherwise return the
error status.</p>
</li></ul><p>No exceptions are thrown beyond those thrown by the
underlying RPC protocol <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>.</p></div>