Skip to content

Fix the incorrect InterfaceImpl token documentation. #1898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: docs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ api_name:

## -description

Enumerates MethodDef tokens representing interface implementations.
Enumerates InterfaceImpl tokens representing interface implementations.

## -parameters

Expand All @@ -60,11 +60,11 @@ A pointer to the enumerator.

### -param td [in]

The token of the TypeDef whose MethodDef tokens representing interface implementations are to be enumerated.
The token of the TypeDef whose InterfaceImpl tokens representing interface implementations are to be enumerated.

### -param rImpls [out]

The array used to store the MethodDef tokens.
The array used to store the InterfaceImpl tokens.

### -param cMax [in]

Expand All @@ -87,7 +87,7 @@ The actual number of tokens returned in <i>rImpls</i>.
</tr>
<tr>
<td><b>S_FALSE</b></td>
<td>There are no MethodDef tokens to enumerate. In this case, <i>pcImpls</i> is 0 (zero).
<td>There are no InterfaceImpl tokens to enumerate. In this case, <i>pcImpls</i> is 0 (zero).


</td>
Expand All @@ -96,4 +96,4 @@ The actual number of tokens returned in <i>rImpls</i>.

## -see-also

<a href="/windows/desktop/api/rometadataapi/nn-rometadataapi-imetadataimport">IMetaDataImport</a>
<a href="/windows/desktop/api/rometadataapi/nn-rometadataapi-imetadataimport">IMetaDataImport</a>
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,30 @@ api_name:

## -description

Gets a pointer to the metadata tokens for the Type that implements the specified method, and for the interface that declares that method.
Gets a pointer to the metadata tokens for the implementater-implementee relationship between two types.

## -parameters

### -param tkInterfaceImpl [in]

The metadata token representing the method to return the class and interface tokens for.
The metadata token representing the interface implementation relationship.

### -param ptkClass [out]

The metadata token representing the class that implements the method.
The metadata token representing the implementer: the class or interface that implements the interface <b>ptkIface</b>.

### -param ptkIface [out]

The metadata token representing the interface that defines the implemented method.
The metadata token representing the implementee: the interface that is implemented by <b>ptkClass</b>.

## -returns

If this method succeeds, it returns <b>S_OK</b>. Otherwise, it returns an <b>HRESULT</b> error code.

## -remarks

The <b>InterfaceImpl</b> token represents one of the n:1 relationships between an implementee and the implementer.

## -see-also

<a href="/windows/desktop/api/rometadataapi/nn-rometadataapi-imetadataimport">IMetaDataImport</a>
<a href="/windows/desktop/api/rometadataapi/nn-rometadataapi-imetadataimport">IMetaDataImport</a>