X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.InteropServices.ComTypes%2FITypeInfo2.cs;h=1b9544f357829ab79a5fd6f192e9983b48f5b68f;hb=8bb9b4409d3f73fdf5ec2afc3b9add6bd33f712f;hp=d259636931d808f5a05d0a4a4a7c561e6b2e2cfa;hpb=0c31213775e39ade10a7ce318be98e2de362da12;p=mono.git diff --git a/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ITypeInfo2.cs b/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ITypeInfo2.cs index d259636931d..1b9544f3578 100644 --- a/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ITypeInfo2.cs +++ b/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ITypeInfo2.cs @@ -5,7 +5,6 @@ // Kazuki Oikawa (kazuki@panicode.com) // -#if NET_2_0 using System; namespace System.Runtime.InteropServices.ComTypes @@ -15,8 +14,24 @@ namespace System.Runtime.InteropServices.ComTypes [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface ITypeInfo2 : ITypeInfo { + new void AddressOfMember (int memid, INVOKEKIND invKind, out IntPtr ppv); + new void CreateInstance ([MarshalAs (UnmanagedType.IUnknown)] object pUnkOuter, [In] ref Guid riid, [MarshalAs (UnmanagedType.IUnknown)] out object ppvObj); + new void GetContainingTypeLib (out ITypeLib ppTLB, out int pIndex); + new void GetDllEntry (int memid, INVOKEKIND invKind, IntPtr pBstrDllName, IntPtr pBstrName, IntPtr pwOrdinal); + new void GetDocumentation (int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile); + new void GetIDsOfNames ([In, MarshalAs(UnmanagedType.LPArray, ArraySubType = (UnmanagedType.LPWStr), SizeParamIndex=1)] string[] rgszNames, int cNames, [Out, MarshalAs (UnmanagedType.LPArray, SizeParamIndex=1)] int[] pMemId); + + new void GetImplTypeFlags (int index, out IMPLTYPEFLAGS pImplTypeFlags); void GetTypeKind (out TYPEKIND pTypeKind); void GetTypeFlags (out int pTypeFlags); + new void GetFuncDesc (int index, out IntPtr ppFuncDesc); + new void GetMops (int memid, out string pBstrMops); + new void GetNames (int memid, [Out, MarshalAs (UnmanagedType.LPArray, SizeParamIndex=2)] string[] rgBstrNames, int cMaxNames, out int pcNames); + new void GetRefTypeInfo (int hRef, out ITypeInfo ppTI); + new void GetRefTypeOfImplType (int index, out int href); + new void GetTypeAttr (out IntPtr ppTypeAttr); + new void GetTypeComp (out ITypeComp ppTComp); + new void GetVarDesc (int index, out IntPtr ppVarDesc); void GetFuncIndexOfMemId (int memid, INVOKEKIND invKind, out int pFuncIndex); void GetVarIndexOfMemId (int memid, out int pVarIndex); void GetCustData (ref Guid guid, out object pVarVal); @@ -31,6 +46,12 @@ namespace System.Runtime.InteropServices.ComTypes void GetAllParamCustData(int indexFunc, int indexParam, IntPtr pCustData); void GetAllVarCustData(int index, IntPtr pCustData); void GetAllImplTypeCustData(int index, IntPtr pCustData); + new void Invoke ([MarshalAs (UnmanagedType.IUnknown)] object pvInstance, int memid, short wFlags, ref DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr); + [PreserveSig] + new void ReleaseTypeAttr (IntPtr pTypeAttr); + [PreserveSig] + new void ReleaseFuncDesc (IntPtr pFuncDesc); + [PreserveSig] + new void ReleaseVarDesc (IntPtr pVarDesc); } } -#endif \ No newline at end of file