Export (0) Print
Expand All
Expand Minimize

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

Minimum supported server

Windows 2000 Server

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

 

 

Build date: 8/19/2010

Community Additions

ADD
Show:
© 2014 Microsoft