[This is preliminary documentation and subject to change.]
The MsiGetFeatureInfo function returns descriptive information for a feature.
UINT MsiGetFeatureInfo(
MSIHANDLE hProduct, // product handle obtained from MsiOpenProduct
LPCTSTR szFeature, // feature name
DWORD *lpAttributes, // attribute flags
LPTSTR lpTitleBuf, // localized name
DWORD *pcchTitleBuf, // in/out buffer character count
LPTSTR lpHelpBuf, // description
DWORD *pcchHelpBuf // in/out buffer character count
);
Flag | Value |
---|---|
INSTALLFEATUREATTRIBUTE_FAVORLOCAL | 1 << 0 |
INSTALLFEATUREATTRIBUTE_FAVORSOURCE | 1 << 1 |
INSTALLFEATUREATTRIBUTE_FOLLOWPARENT | 1 << 2 |
INSTALLFEATUREATTRIBUTE_FAVORADVERTISE | 1 << 3 |
INSTALLFEATUREATTRIBUTE_DISALLOWADVERTISE | 1 << 4 |
For information on how these flags work together, see the Feature table.
The buffer sizes for the MsiGetFeatureInfo function should include an extra character for the terminating NULL character upon input. If a buffer is too small, the returned string will be truncated with NULL, and the buffer size will contain the number of characters in the whole string, not including the terminating NULL.
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.