Is there any purpose of ComDefaultInterface for a COM Callable Wrapper?
问题 What is the purpose of ComDefaultInterfaceAttribute attribute, if the managed object with ClassInterfaceType.None is marshaled as either IUnknown or IDispatch , anyway? Consider the following C# class AuthenticateHelper , which implements COM IAuthenticate : [ComImport] [Guid("79eac9d0-baf9-11ce-8c82-00aa004ba90b")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IAuthenticate { [PreserveSig] int Authenticate( [In, Out] ref IntPtr phwnd, [In, Out, MarshalAs