MsiViewClose 函式 (msiquery.h)

MsiViewClose 函式會釋放已執行檢視的結果集。

語法

UINT MsiViewClose(
  [in] MSIHANDLE hView
);

參數

[in] hView

設定為發行的檢視句柄。

傳回值

請注意,在記憶體不足的情況下,此函式可能會引發STATUS_NO_MEMORY例外狀況。

備註

必須先呼叫 MsiViewClose 函式,才能在檢視上再次呼叫 MsiViewExecute 函式,除非已使用 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
程式庫 Msi.lib
Dll Msi.dll

另請參閱

一般數據庫存取函式