Export (0) Print
Expand All
Expand Minimize

SetupAdjustDiskSpaceList 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 SetupAdjustDiskSpaceList function adjusts the amount of required space for a specified drive.

Syntax


BOOL WINAPI SetupAdjustDiskSpaceList(
  _In_        HDSKSPC DiskSpace,
  _In_        LPCTSTR DriveRoot,
  _In_        LONGLONG Amount,
  _Reserved_  PVOID Reserved1,
  _Reserved_  UINT Reserved2
);

Parameters

DiskSpace [in]

Handle to a disk-space list.

DriveRoot [in]

Specifies a valid Win32 drive root. An entry is added to the disk-space list if the specified drive is not currently in the disk-space list.

Amount [in]

Specifies the amount of space to add or remove. Use a negative number to remove space and use a positive number to add space.

Reserved1

Unused, must be zero.

Reserved2

Unused, 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.

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

SetupAdjustDiskSpaceListW (Unicode) and SetupAdjustDiskSpaceListA (ANSI)

See also

Overview
Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft