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: 11/12/2009

Tags :


Community Content

dmex
vb.net syntax
<DllImport("msi.dll", CharSet:=CharSet.Unicode)> _
Public Shared Function MsiVerifyDiskSpace(ByVal hInstall As Integer) As UInt32
End Function
Tags : vb.net syntax

dmex
C# syntax
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
public static extern uint MsiVerifyDiskSpace(int hInstall);
Tags : c# syntax

Page view tracker