SetupQueryInfOriginalFileInformation 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 SetupQueryInfOriginalFileInformation function returns the original name of an OEM INF file.

Syntax


BOOL SetupQueryInfOriginalFileInformation(
  _In_  PSP_INF_INFORMATION    InfInformation,
  _In_  UINT                   InfIndex,
  _In_  PSP_ALTPLATFORM_INFO   AlternatePlatformInfo,
  _Out_ PSP_ORIGINAL_FILE_INFO OriginalFileInfo
);

Parameters

InfInformation [in]

Pointer to an SP_INF_INFORMATION structure returned from a call to the SetupGetInfInformation function.

InfIndex [in]

Index of the constituent INF file name to retrieve. This index can be in the range [0, InfInformation.InfCount). Meaning that the values zero through, but not including, InfInformation.InfCount are valid.

AlternatePlatformInfo [in]

Optional pointer to an SP_ALTPLATFORM_INFO_V1 or SP_ALTPLATFORM_INFO_V2 structure used to pass information for an alternate platform to SetupQueryInfOriginalFileInformation.

OriginalFileInfo [out]

Pointer to an SP_ORIGINAL_FILE_INFO structure that receives the original INF file name and catalog file information returned by SetupQueryInfOriginalFileInformation.

Return value

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get 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

SetupQueryInfOriginalFileInformationW (Unicode) and SetupQueryInfOriginalFileInformationA (ANSI)

See also

Overview
Functions

 

 

Show: