[This is preliminary documentation and subject to change.]
The MsiEnumClients function enumerates the clients for a given installed component. The function retrieves one product code each time it is called.
UINT MsiEnumClients(
LPCTSTR szComponent, // component code, string GUID
DWORD iProductIndex, // 0-based index into client products
LPTSTR lpProductBuf // buffer to receive GUID
);
To enumerate clients, an application should initially call the MsiEnumClients function with the iProductIndex parameter set to zero. The application should then increment the iProductIndex parameter and call MsiEnumClients until there are no more clients (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.