Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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.
WINSETUPAPI BOOL SetupQueryInfOriginalFileInformationA(
[in] PSP_INF_INFORMATION InfInformation,
[in] UINT InfIndex,
[in] PSP_ALTPLATFORM_INFO AlternatePlatformInfo,
[out] PSP_ORIGINAL_FILE_INFO_A OriginalFileInfo
);
[in] InfInformation
Pointer to an SP_INF_INFORMATION structure returned from a call to the SetupGetInfInformation function.
[in] InfIndex
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.
[in] AlternatePlatformInfo
Optional pointer to an SP_ALTPLATFORM_INFO_V1 or SP_ALTPLATFORM_INFO_V2 structure used to pass information for an alternate platform to SetupQueryInfOriginalFileInformation.
[out] OriginalFileInfo
Pointer to an SP_ORIGINAL_FILE_INFO structure that receives the original INF file name and catalog file information returned by SetupQueryInfOriginalFileInformation.
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.
Note
The setupapi.h header defines SetupQueryInfOriginalFileInformation 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.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today