The
MsiVerifyDiskSpace function checks to see if sufficient disk space is present for the current installation.
Syntax
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
| Version | Windows 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 |
| Header | Msiquery.h |
| Library | Msi.lib |
| DLL | Msi.dll |
See Also
- Installer Selection Functions
Send comments about this topic to Microsoft
Build date: 11/12/2009