MsiVerifyDiskSpace Function

Windows Installer

MsiVerifyDiskSpace Function

The MsiVerifyDiskSpace function checks to see if sufficient disk space is present for the current installation.

Syntax

C++UINT MsiVerifyDiskSpace(
  __in  MSIHANDLE hInstall
);

Parameters

hInstall [in]

Handle to the installation provided to a DLL custom action or obtained through MsiOpenPackage, MsiOpenPackageEx, or MsiOpenProduct.

Return Value

ERROR_DISK_FULL

The disk is full.

ERROR_INVALID_HANDLE

An invalid or inactive handle was supplied.

ERROR_INVALID_HANDLE_STATE

The handle is in an invalid state.

ERROR_SUCCESS

The function succeeded.

Remarks

See Calling Database Functions From Programs.

Requirements

VersionWindows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000
HeaderMsiquery.h
LibraryMsi.lib
DLLMsi.dll

See Also

Installer Selection Functions

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.