MsiPreviewDialogA function (msiquery.h)
The MsiPreviewDialog function displays a dialog box as modeless and inactive.
Syntax
UINT MsiPreviewDialogA(
[in] MSIHANDLE hPreview,
[in] LPCSTR szDialogName
);
Parameters
[in] hPreview
Handle to the preview.
[in] szDialogName
Specifies the name of the dialog box to preview.
Return value
This function returns UINT.
Remarks
Supplying a null name in the MsiPreviewDialog function removes any current dialog box.
Note
The msiquery.h header defines MsiPreviewDialog as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
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 |