This topic has not yet been rated - Rate this topic

SetupRemoveInstallSectionFromDiskSpaceList 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 SetupRemoveInstallSectionFromDiskSpaceList function searches an Install section of an INF file for CopyFiles and DelFiles lines, and removes the file operations specified in those sections from a disk-space list.

Syntax

BOOL SetupRemoveInstallSectionFromDiskSpaceList(
  __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. If LayoutInfHandle is not specified, the INF file must also contain the section specified by SectionName.

LayoutInfHandle [in]

Optional 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]

Pointer to a null-terminated string that specifies the name of the section to be added to the disk-space list.

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

Minimum supported server

Windows 2000 Server

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupRemoveInstallSectionFromDiskSpaceListW (Unicode) and SetupRemoveInstallSectionFromDiskSpaceListA (ANSI)

See Also

Overview
Functions
SetupRemoveFromDiskSpaceList
SetupRemoveSectionFromDiskSpaceList
SetupAddInstallSectionToDiskSpaceList

 

 

Build date: 8/19/2010

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ