MsiViewClose function (msiquery.h)

The MsiViewClose function releases the result set for an executed view.


UINT MsiViewClose(
  [in] MSIHANDLE hView


[in] hView

Handle to a view that is set to release.

Return value

Note that in low memory situations, this function can raise a STATUS_NO_MEMORY exception.


The MsiViewClose function must be called before the MsiViewExecute function is called again on the view, unless all rows of the result set have been obtained with the MsiViewFetch function.


Minimum supported client Windows Installer 5.0 on Windows Server 2012, Windows 8, 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 or Windows XP
Target Platform Windows
Header msiquery.h
Library Msi.lib
DLL Msi.dll

See also

General Database Access Functions