MsiViewFetch

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiViewFetch(
   IntPtr hView,
   out IntPtr hRecord
);

Microsoft documentation: Link

Last updated