[This is preliminary documentation and subject to change.]
The MsiViewFetch function fetches the next sequential record from the view.
UINT MsiViewFetch(
MSIHANDLE hView, // view handle
MSIHANDLE *phRecord // handle for fetched record
);
If the MsiViewFetch function returns ERROR_FUNCTION_FAILED, it is possible that the MsiViewExecute function was not called first. If more rows are available in the result set, MsiViewFetch returns phRecord as a handle to a record containing the requested column data, or phRecord is 0. For maximum performance, the same record should be used for all retrievals, or the record should be released by going out of scope.
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 msiquery.h.
Import Library: Use msi.lib.
Database Access Reference, General Database Access Functions