Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetupAddInstallSectionToDiskSpaceList
Collapse the table of content
Expand the table of content

SetupAddInstallSectionToDiskSpaceList 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 SetupAddInstallSectionToDiskSpaceList function searches for CopyFile and DelFile lines in an Install section of an INF file. The function then adds the file operations specified in those sections to a disk-space list.

Syntax


BOOL SetupAddInstallSectionToDiskSpaceList(
  _In_  HDSKSPC DiskSpace,
  _In_  HINF InfHandle,
  _In_  HINF LayoutInfHandle,
  _In_  PCTSTR SectionName,
  _In_  PVOID Reserved1,
  _In_  UINT Reserved2
);

Parameters

DiskSpace [in]

Handle to a disk-space list.

InfHandle [in]

Handle to an open INF file that contains the Install section to be searched. If ListInfHandle is not specified, the INF file must also contain the section specified by SectionName.

LayoutInfHandle [in]

This parameter, if specified, provides the handle to the INF file that contains the SourceDisksFiles sections. Otherwise that section is assumed to exist in the INF file specified by InfHandle.

SectionName [in]

Name of the Install section to be added to the disk-space list. You should use a null-terminated string.

Reserved1 [in]

Must be zero.

Reserved2 [in]

Must be zero.

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.

Remarks

This function requires a Windows INF file. Some older INF file formats may not be supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupAddInstallSectionToDiskSpaceListW (Unicode) and SetupAddInstallSectionToDiskSpaceListA (ANSI)

See also

Overview
Functions
SetupAddSectionToDiskSpaceList
SetupAddToDiskSpaceList
SetupRemoveInstallSectionFromDiskSpaceList

 

 

Community Additions

ADD
Show:
© 2015 Microsoft