[This is preliminary documentation and subject to change.]
The product database contains information about a product. For more information on obtaining product information with enumeration functions, see Initializing an Application.
The following steps describe how to get product information:
If the database is contained in an installation package, call the MsiOpenPackage function.
If you want to obtain product information using the product code, rather than using the open database handle, call the MsiGetProductInfo function instead of MsiGetProductProperty.
The MsiCloseAllHandles function is a diagnostic function and should not be used to close handles you know to be open. It is acceptable to call the MsiCloseAllHandles function when the application closes to ensure that all handles have been closed.