RoIsApiContractPresent function (rometadataresolution.h)
Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
Syntax
HRESULT RoIsApiContractPresent(
PCWSTR name,
UINT16 majorVersion,
UINT16 minorVersion,
BOOL *present
);
Parameters
name
Type: PCWSTR
The name of the API contract.
majorVersion
Type: UINT16
The major version number of the API contract.
minorVersion
Type: UINT16
The minor version number of the API contract.
present
Type: BOOL*
True if the specified API contract is present; otherwise, false.
Return value
Type: HRESULT
This function can return one of these values.
Return code | Description |
---|---|
|
The specified API contract is valid and is present. |
|
The input string is not an API contract defined in any examined .winmd file. |
|
The input string is an existing namespace rather than an API contract name. |
Remarks
This function was introduced in Windows 10, version 1809 (build 17763).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2019 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | rometadataresolution.h |
Library | WindowsApp.lib |
DLL | WinTypes.dll |