[DllImport("msi.dll", CharSet = CharSet.Auto)] public static extern int MsiRecordGetString( IntPtr hRecord, int iField, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder szValueBuf, ref int pcchValueBuf );
Microsoft documentation: Link
Last updated 1 year ago