SetupRemoveFromDiskSpaceList
TOC
Collapse the table of content
Expand the table of content

SetupRemoveFromDiskSpaceList 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 SetupRemoveFromDiskSpaceList function removes a file delete or copy operation from a disk-space list.

Syntax


BOOL SetupRemoveFromDiskSpaceList(
  _In_  HDSKSPC DiskSpace,
  _In_  PCTSTR TargetFilespec,
  _In_  UINT Operation,
  _In_  PVOID Reserved1,
  _In_  UINT Reserved2
);

Parameters

DiskSpace [in]

Handle to a disk-space list.

TargetFilespec [in]

Pointer to a null-terminated string that specifies the file name of the file to remove from the disk-space list. This is typically a fully-qualified path. Otherwise, the path must be relative to the current directory.

Operation [in]

File operation to be removed from the list. This parameter can be one of the following values.

ValueMeaning
FILEOP_DELETE

A file delete operation.

FILEOP_COPY

A file copy operation.

 

Reserved1 [in]

Must be zero.

Reserved2 [in]

Must be zero.

Return value

If the file was not in the list, the SetupRemoveFromDiskSpaceList function returns a nonzero value and GetLastError returns ERROR_INVALID_DRIVE or ERROR_INVALID_NAME. If the file was in the list then upon success the routine returns a nonzero value and GetLastError returns NO_ERROR.

If the routine fails for some other reason, it returns zero and GetLastError returns extended error information.

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

SetupRemoveFromDiskSpaceListW (Unicode) and SetupRemoveFromDiskSpaceListA (ANSI)

See also

Overview
Functions
SetupRemoveSectionFromDiskSpaceList
SetupRemoveInstallSectionFromDiskSpaceList
SetupAddToDiskSpaceList

 

 

Community Additions

ADD
Show:
© 2016 Microsoft