[This is preliminary documentation and subject to change.]
The MsiGetFeatureUsage returns the usage metrics for a product feature.
UINT MsiGetFeatureUsage(
LPCTSTR szProduct, // product code
LPCTSTR szFeature, // feature ID
DWORD *pdwUseCount, // returned use count
WORD *pwDateUsed // last date used
);
Bits | Contents |
---|---|
0-4 | Day of the month (1-31) |
5-8 | Month (1 = January, 2 = February, and so on) |
9-15 | Year offset from 1980 (add 1980 to get actual year) |
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.