Skip to content

Latest commit

 

History

History
111 lines (75 loc) · 4.18 KB

nf-setupapi-setupcreatediskspacelistw.md

File metadata and controls

111 lines (75 loc) · 4.18 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:setupapi.SetupCreateDiskSpaceListW
SetupCreateDiskSpaceListW function (setupapi.h)
The SetupCreateDiskSpaceList function creates a disk-space list. (Unicode)
SetupCreateDiskSpaceList
SetupCreateDiskSpaceList function [Setup API]
SetupCreateDiskSpaceListW
_setupapi_setupcreatediskspacelist
setup.setupcreatediskspacelist
setupapi/SetupCreateDiskSpaceList
setupapi/SetupCreateDiskSpaceListW
setup\setupcreatediskspacelist.htm
setup
a578ed9d-12b2-43f4-ab0a-183269de0d40
12/05/2018
SetupCreateDiskSpaceList, SetupCreateDiskSpaceList function [Setup API], SetupCreateDiskSpaceListA, SetupCreateDiskSpaceListW, _setupapi_setupcreatediskspacelist, setup.setupcreatediskspacelist, setupapi/SetupCreateDiskSpaceList, setupapi/SetupCreateDiskSpaceListA, setupapi/SetupCreateDiskSpaceListW
setupapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
SetupCreateDiskSpaceListW (Unicode) and SetupCreateDiskSpaceListA (ANSI)
Setupapi.lib
Setupapi.dll
Windows
19H1
SetupCreateDiskSpaceListW
setupapi/SetupCreateDiskSpaceListW
c++
APIRef
kbSyntax
DllExport
Setupapi.dll
SetupCreateDiskSpaceList
SetupCreateDiskSpaceListA
SetupCreateDiskSpaceListW

SetupCreateDiskSpaceListW function

-description

[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 SetupCreateDiskSpaceList function creates a disk-space list.

-parameters

-param Reserved1 [in]

Unused, must be zero.

-param Reserved2 [in]

Unused, must be zero.

-param Flags [in]

This parameter can be the following value.

SPDSL_IGNORE_DISK

File operations added to the list will ignore files that already exist on the disk. For example, if the disk contains a 5000-byte file, C:\MyDir\MyFile, and you add a Copy operation to the disk-space list for a new version, C:\MyDir\MyFile, that is 6500 bytes, the space required will be 6500 bytes (instead of 1500 bytes, which is the value returned if you do not set SPDSL_IGNORE_DISK).

- Flags.SPDSL_IGNORE_DISK

File operations added to the list will ignore files that already exist on the disk. For example, if the disk contains a 5000-byte file, C:\MyDir\MyFile, and you add a Copy operation to the disk-space list for a new version, C:\MyDir\MyFile, that is 6500 bytes, the space required will be 6500 bytes (instead of 1500 bytes, which is the value returned if you do not set SPDSL_IGNORE_DISK).

-returns

If the function succeeds, it returns a handle to the disk-space list.

If the function fails, it returns null. To get extended error information, call GetLastError.

-see-also

Functions

Overview

SetupDestroyDiskSpaceList

-remarks

Note

The setupapi.h header defines SetupCreateDiskSpaceList as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.