Skip to content

Latest commit

 

History

History
117 lines (95 loc) · 2.29 KB

nf-rometadataresolution-roisapicontractmajorversionpresent.md

File metadata and controls

117 lines (95 loc) · 2.29 KB
UID title tech.root ms.date targetos description helpviewer_keywords req.assembly req.construct-type req.ddi-compliance req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.dll req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:rometadataresolution.RoIsApiContractMajorVersionPresent
RoIsApiContractMajorVersionPresent (rometadataresolution.h)
WinRT
02/13/2020
Windows
Returns true or false to indicate whether the API contract with the specified name and major version number is present.
RoIsApiContractMajorVersionPresent
function
rometadataresolution.h
WindowsApp.lib
WinTypes.dll
Windows 10 [desktop apps \| UWP apps]
Windows Server 2019 [desktop apps \| UWP apps]
Windows
apiref
rometadataresolution.h
RoIsApiContractMajorVersionPresent
RoIsApiContractMajorVersionPresent
rometadataresolution/RoIsApiContractMajorVersionPresent
c++

RoIsApiContractMajorVersionPresent function

-description

Returns true or false to indicate whether the API contract with the specified name and major version number is present.

-parameters

-param name

Type: PCWSTR

The name of the API contract.

-param majorVersion

Type: UINT16

The major version number of the API contract.

-param present

Type: BOOL*

True if the specified API contract is present; otherwise, false.

-returns

Type: HRESULT

This function can return one of these values.

Return code Description
S_OK
The specified API contract is valid and is present.
RO_E_METADATA_NAME_NOT_FOUND
The input string is not an API contract defined in any examined .winmd file.
RO_E_METADATA_NAME_IS_NAMESPACE
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).

-see-also