SetupInstallServicesFromInfSection

The SetupInstallServicesFromInfSection function performs service installation and deletion operations specified in the Service Install sections listed in the Service section of an INF file.

BOOL SetupInstallServicesFromInfSection(
  HINF InfHandle,      // handle to the open INF file
  PCTSTR SectionName,  // name of the Service section
  DWORD Flags          // controls installation procedure
);
 

Parameters

InfHandle
Supplies the handle of the INF file that contains the Service section.
SectionName
Supplies the name of the Service section to process.
Flags
A flag that controls the installation.
SPSVCINST_TAGTOFRONT
Move the service's tag to the front of its group order list.

Return Values

If the function succeeds, the return value is a non-zero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in setupapi.h.
  Import Library: Link with setupapi.lib.

See Also

Overview, Functions, SetupInstallFromInfSection, SetupInstallFilesFromInfSection