MsiOpenPackageEx (msi)
Last changed: -178.164.179.221

.
Summary
The MsiOpenPackageEx function opens a package to use with functions that access the product database. The MsiCloseHandle function must be called with the handle when the handle is no longer needed.

C# Signature:

[DllImport("msi.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, ExactSpelling = true)]
public static extern UInt32 MsiOpenPackageExW(string szPackagePath, UInt32 dwOptions, ref IntPtr hProduct);

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

dwOptions: MSIOPENPACKAGEFLAGS_IGNOREMACHINESTATE = 1

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation