<div class="content" name="GetFuncDesc" uuid="d54aca09-0565-4fa8-b5e4-cf87723a89ed"><p>The GetFuncDesc method retrieves a <a href="d3349d25-e11d-4095-ba86-de3fda178c4e" data-linktype="relative-path">FUNCDESC</a> structure that
contains information about a member of the <a href="99504cf9-16d8-401e-a873-83b85d1ee4aa" data-linktype="relative-path">ITypeInfo server&#39;s</a> method
or dispatch method table.</p><dl>
<dd>
<div><pre> HRESULT GetFuncDesc(
   [in] UINT index,
   [out] LPFUNCDESC* ppFuncDesc,
   [out] DWORD* pReserved
 );
</pre></div>
</dd></dl><p><b>index: </b>MUST equal the ordinal position in the
method table (if the type describes a <a href="5583e1b8-454c-4147-9f56-f72416a15bee#gt_4b20db64-5f0c-4df0-9ecf-91cdde2c2408" data-linktype="relative-path">DCOM interface</a> or module)
or the dispatch method table (if the type describes a <a href="5583e1b8-454c-4147-9f56-f72416a15bee#gt_35b38e6d-42ee-4b7b-8ca1-ab93308458d5" data-linktype="relative-path">dispinterface</a>) of the
method whose description is to be returned. The value of index MUST be less
than the value of the cFuncs field in the <a href="0ca10d08-61d2-4059-9109-7bbaf545715e" data-linktype="relative-path">TYPEATTR (section 2.2.44)</a>
structure returned by the <a href="b96292a8-c06e-4b9c-905e-129b95697ee4" data-linktype="relative-path">GetTypeAttr (section 3.7.4.1)</a>
method.</p><p><b>ppFuncDesc: </b>MUST be set to a FUNCDESC
structure (see section 2.2.42) that contains the data values associated with
the specified member of the method or dispatch method table, or NULL if no such
member exists.</p><p><b>pReserved: </b>MUST be set to 0 and ignored on
receipt.</p><p><b>Return Values: </b>The method MUST return
information in an HRESULT data structure, defined in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>.
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>index</i> did not specify the ordinal
  position of an element in the method table.</p>
  </td>
 </tr></tbody></table>
</li></ul><p> </p></div>