Export (0) Print
Expand All
Expand Minimize

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 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupQueryInfOriginalFileInformationW (Unicode) and SetupQueryInfOriginalFileInformationA (ANSI)

See Also

Overview
Functions

 

 

Build date: 8/19/2010

Community Additions

ADD
Show:
© 2014 Microsoft