ReadFmtUserTypeStg

[DllImport("ole32.dll", SetLastError = true)]
public static extern int ReadFmtUserTypeStg(
   IStorage pstg,
   out uint cf,
   out IntPtr lplpszUserType
);

Microsoft documentation: Link

Last updated