SetupVerifyInfFile function

[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


BOOL SetupVerifyInfFile(
  _In_  PCWSTR                InfName,
  _In_  PSP_ALTPLATFORM_FORM  AltPlatformInfo,
  _Out_ PSP_INF_SIGNER_INFO_W InfFileName
);

Parameters

InfName [in]

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

AltPlatformInfo [in]

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.

InfFileName [out]

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

TRUE

The function succeeds.

FALSE

The function fails. For extended error information, call GetLastError.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupVerifyInfFileW (Unicode) and SetupVerifyInfFileA (ANSI)

See also

Functions
Overview

 

 

Show: