[DllImport("ole32.dll", SetLastError = true)] public static extern int CoGetMarshalSizeMax( out uint pulSize, ref Guid riid, IUnknown pUnk, uint dwDestContext, IntPtr pvDestContext, uint mshlflags );
Microsoft documentation: Link
Last updated 1 year ago