<div class="content"><p> </p><p>The GetVarIndexOfMemId method retrieves the location of an
element in the data member table by using the associated MEMBERID of the
element.</p><p>The method is received by the server in an RPC_REQUEST
packet. </p><dl>
<dd>
<div><pre> HRESULT GetVarIndexOfMemId(
   [in] MEMBERID memid,
   [out] UINT* pVarIndex
 );
</pre></div>
</dd></dl><p><b>memid: </b>MUST be a MEMBERID, as specified in
section <span><a href="ace8758f-ee2b-4cb6-8645-973994d12530" data-linktype="relative-path">2.2.35</a></span>. MUST NOT be
MEMBERID_NIL.</p><p><b>pVarIndex: </b>MUST be set to the ordinal position
in the data member table of the element whose MEMBERID is specified by memid,
if such an element exists. If the method returns a failure code, the value MUST
be ignored on receipt.</p><p><b>Return Values: </b>The method MUST return
information in an HRESULT data structure that is defined in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>
section <span><a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a></span>.
The severity bit in the structure identifies the following conditions: </p><ul><li><p><span><span> 
</span></span>If the severity bit is set to 0, the method completed
successfully.</p>
</li><li><p><span><span> 
</span></span>If the severity bit is set to 1 and the entire HRESULT DWORD does
not match a value in the following table, a fatal failure occurred.</p>
</li><li><p><span><span> 
</span></span>If the severity bit is set to 1 and the entire HRESULT DWORD
matches a value in the following table, a failure occurred. </p>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x8002802B</p>
  <p>TYPE_E_ELEMENTNOTFOUND</p>
  </td>
  <td>
  <p>The value of <i>memid</i> did not specify a member of
  the type. See [MS-ERREF].</p>
  </td>
 </tr></tbody></table>
</li></ul><p> </p></div>