[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 SetupConfigureWmiFromInfSection function configures the security of the WMI data that is exposed by an INF file when passed to the [DDInstall.WMI] section.
It is used to establish security when the version of SetupAPI on the system does not natively support the WMI security information provided in the DDInstall section of the INF file.
BOOL SetupConfigureWmiFromInfSection( __in HINF InfHandle, __in PCWSTR SectionName, __in DWORD Flags );
- InfHandle [in]
A handle to an open INF file.
- SectionName [in]
Name of the section in the INF file that contains WMI security information. This should be in the form of[DDinstall.WMI].
- Flags [in]
This parameter can be set as follows.
The function succeeds.
The function fails. For extended error information, call GetLastError.
In previous SetupAPI versions, WMI information in INF files is exposed to all users, and access could only be limited by correctly writing binary data to a registry key. Current versions read and process WMI security information provided by the DDInstall section of an INF file.
Minimum supported client
Minimum supported server
|Windows Server 2003|
Unicode and ANSI names
|SetupConfigureWmiFromInfSectionW (Unicode) and SetupConfigureWmiFromInfSectionA (ANSI)|
Build date: 8/19/2010