[This is preliminary documentation and subject to change.]
The MsiEnumProducts function enumerates advertising products. The function retrieves one product code each time it is called.
UINT MsiEnumProducts(
DWORD iProductIndex, // 0-based index into registered products
LPTSTR lpProductBuf // buffer to receive GUID
);
To enumerate products, an application should initially call the MsiEnumProducts function with the iProductIndex parameter set to zero. The application should then increment the iProductIndex parameter and call MsiEnumProducts until there are no more products (until the function returns ERROR_NO_MORE_ITEMS).
Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in msi.h.
Import Library: Use msi.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.