[This is preliminary documentation and subject to change.]
The MsiEnumFeatures function enumerates the published features for a given product. This function retrieves one feature ID each time it is called.
UINT MsiEnumFeatures(
LPCTSTR szProduct, // product code, string GUID
DWORD iFeatureIndex, // 0-based index into published features
LPTSTR lpFeatureBuf, // buffer for feature
LPTSTR lpParentBuf // buffer for parent of feature
);
To enumerate features, an application should initially call the MsiEnumFeatures function with the iFeatureIndex parameter set to zero. The application should then increment the iFeatureIndex parameter and call MsiEnumFeatures until there are no more features (that is, 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.