SetupVerifyInfFileA function (setupapi.h)

[This function is available for use in the operating systems indicated in the Requirements section. It may be altered or unavailable in subsequent versions. SetupAPI should no longer be used for installing applications. Instead, use the Windows Installer for developing application installers. SetupAPI continues to be used for installing device drivers.]

The SetupVerifyInfFile function verifies the digital signature of the specified INF file by using its corresponding catalog. The verification can be performed against an alternate platform.

Syntax

WINSETUPAPI BOOL SetupVerifyInfFileA(
  [in]  PCSTR                 InfName,
  [in]  PSP_ALTPLATFORM_INFO  AltPlatformInfo,
  [out] PSP_INF_SIGNER_INFO_A InfSignerInfo
);

Parameters

[in] InfName

The name of the INF file to be verified. This name may include a path.

[in] AltPlatformInfo

An optional pointer to a SP_ALTPLATFORM_INFO_V2 structure that contains information about the alternate platform to use when validating the INF file. This parameter can be Null.

[out] InfSignerInfo

A pointer to an SP_INF_SIGNER_INFO structure that receives information about the INF digital signature, that is, if it is signed.

Return value

This function returns WINSETUPAPI BOOL.

Remarks

Note

The setupapi.h header defines SetupVerifyInfFile as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header setupapi.h
Library Setupapi.lib
DLL Setupapi.dll
API set ext-ms-win-setupapi-classinstallers-l1-1-2 (introduced in Windows 10, version 10.0.14393)

See also

Functions

Overview