Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _EventInfo.cs
index 848fee70d8dff17dabc1eb86c2c5a9f3a4bbb6f3..4b6aae76c3f01a8ea8d2f20a3383c4ab346b81d0 100644 (file)
@@ -5,21 +5,23 @@
 //   Kazuki Oikawa  (kazuki@panicode.com)
 //
 
-#if NET_1_1
-
 using System;
 using System.Reflection;
 
 namespace System.Runtime.InteropServices
 {
        [CLSCompliant (false)]
-       [InterfaceType (ComInterfaceType.InterfaceIsDual)]
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
+#if !FULL_AOT_RUNTIME
+       [TypeLibImportClass (typeof (EventInfo))]
+#endif
+       [ComVisible (true)]
        public interface _EventInfo
        {
                void AddEventHandler (object target, Delegate handler);
 
-               bool Equals (object obj);
+               bool Equals (object other);
 
                MethodInfo GetAddMethod ();
 
@@ -31,6 +33,15 @@ namespace System.Runtime.InteropServices
 
                int GetHashCode ();
 
+               void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
+
+               void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
+
+               void GetTypeInfoCount (out uint pcTInfo);
+
+               void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
+                       IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
+
                MethodInfo GetRaiseMethod ();
 
                MethodInfo GetRaiseMethod (bool nonPublic);
@@ -64,4 +75,3 @@ namespace System.Runtime.InteropServices
                Type ReflectedType {get;}
        }
 }
-#endif