Export (0) Print
Expand All
Expand Minimize

SetupConfigureWmiFromInfSection 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 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.

Syntax

BOOL SetupConfigureWmiFromInfSection(
  __in  HINF InfHandle,
  __in  PCWSTR SectionName,
  __in  DWORD Flags
);

Parameters

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.

FlagMeaning
SCWMI_CLOBBER_SECURITY
0x0001

If and only if this flag is set does the security information passed to this function override any security information set elsewhere in the INF file. If this flag does not exist and no security information exists in the INF file, the security is set.

 

Return Value

TRUE

The function succeeds.

FALSE

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

Remarks

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.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupConfigureWmiFromInfSectionW (Unicode) and SetupConfigureWmiFromInfSectionA (ANSI)

See Also

Functions
Overview
Specifying a Security Descriptor From an INF File

 

 

Build date: 8/19/2010

Community Additions

ADD
Show:
© 2014 Microsoft