[New for Windows NT 4.0 Service Pack 3.]
The SetupAddSectionToDiskSpaceList function adds to a disk-space list all the file delete or copy operations listed in a Copy Files or Delete Files section of an INF file.
Target disk compression is ignored by this function. Files are assumed to occupy their full size on the target disk.
BOOL SetupAddSectionToDiskSpaceList(
HDSKSPC DiskSpace, // handle to the disk-space list
HINF InfHandle, // handle to the INF file
HINF ListInfHandle, // optional, handle to the layout INF file
PCTSTR SectionName, // specifies the Copy Files or Delete Files
// section name
UINT Operation, // specifies the type of file operation
PVOID Reserved1, // must be zero
UINT Reserved2 // must be zero
);
Value | Meaning |
---|---|
FILEOP_DELETE | A file delete operation. |
FILEOP_COPY | A file copy operation. |
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.
Windows NT: Use version 4.0 SP3 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in setupapi.h.
Import Library: Link with setupapi.lib.
Overview, Functions, SetupAddToDiskSpaceList, SetupAddInstallSectionToDiskSpaceList, SetupRemoveSectionFromDiskSpaceList