MsiRecordDataSize

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiRecordDataSize(
   IntPtr hRecord,
   [MarshalAs(UnmanagedType.LPTStr)] string szName
);

Microsoft documentation: Link

Last updated