msiviewClose 函数 (msiquery.h)

MsiViewClose 函数释放已执行视图的结果集。

语法

UINT MsiViewClose(
  [in] MSIHANDLE hView
);

参数

[in] hView

设置为释放的视图的句柄。

返回值

请注意,在内存不足的情况下,此函数可能会引发STATUS_NO_MEMORY异常。

注解

必须在对视图再次调用 MsiViewExecute 函数之前调用 MsiViewClose 函数,除非已使用 MsiViewFetch 函数获取结果集的所有行。

要求

要求
最低受支持的客户端 Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
目标平台 Windows
标头 msiquery.h
Library Msi.lib
DLL Msi.dll

另请参阅

常规数据库访问函数