msiPreviewDialogA 函式 (msiquery.h)

MsiPreviewDialog 函式會將對話框顯示為無模式和非作用中。

語法

UINT MsiPreviewDialogA(
  [in] MSIHANDLE hPreview,
  [in] LPCSTR    szDialogName
);

參數

[in] hPreview

預覽的句柄。

[in] szDialogName

指定要預覽的對話框名稱。

傳回值

此函式會傳回UINT。

備註

MsiPreviewDialog 函式中提供 Null 名稱會移除任何目前的對話方塊。

注意

msiquery.h 標頭會將 MsiPreviewDialog 定義為別名,根據 UNICODE 預處理器常數的定義,自動選取此函式的 ANSI 或 Unicode 版本。 混合使用編碼中性別名與非編碼中性的程序代碼,可能會導致編譯或運行時間錯誤不符。 如需詳細資訊,請參閱 函式原型的慣例

規格需求

需求
最低支援的用戶端 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

另請參閱

使用者介面函式