2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Thu, 13 Nov 2003 19:29:10 +0000 (19:29 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Thu, 13 Nov 2003 19:29:10 +0000 (19:29 -0000)
* IRegistrationServices.cs:
* ITypeLibConverter.cs:
* ITypeLibExporterNameProvider.cs:
* ITypeLibExporterNotifySink.cs:
* ITypeLibImporterNotifySink.cs: Added missing attribute
* UCOMIBindCtx.cs: Added missing attribute, fixed in attribute
* UCOMIConnectionPoint.cs:
* UCOMIConnectionPointContainer.cs:
* UCOMIEnumConnectionPoints.cs:
* UCOMIEnumConnections.cs:
* UCOMIEnumMoniker.cs:
* UCOMIEnumString.cs:
* UCOMIEnumVARIANT.cs:
* UCOMIMoniker.cs:
* UCOMIPersistFile.cs:
* UCOMIRunningObjectTable.cs:
* UCOMIStream.cs:
* UCOMITypeComp.cs:
* UCOMITypeInfo.cs:
* UCOMITypeLib.cs: Added missing attribute

svn path=/trunk/mcs/; revision=19952

21 files changed:
mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
mcs/class/corlib/System.Runtime.InteropServices/IRegistrationServices.cs
mcs/class/corlib/System.Runtime.InteropServices/ITypeLibConverter.cs
mcs/class/corlib/System.Runtime.InteropServices/ITypeLibExporterNameProvider.cs
mcs/class/corlib/System.Runtime.InteropServices/ITypeLibExporterNotifySink.cs
mcs/class/corlib/System.Runtime.InteropServices/ITypeLibImporterNotifySink.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIBindCtx.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIConnectionPoint.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIConnectionPointContainer.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIEnumConnectionPoints.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIEnumConnections.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIEnumMoniker.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIEnumString.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIEnumVARIANT.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIMoniker.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIPersistFile.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIRunningObjectTable.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMIStream.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMITypeComp.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMITypeInfo.cs
mcs/class/corlib/System.Runtime.InteropServices/UCOMITypeLib.cs

index 9de29c8f52958d240166e4e8efbb03bdbe5e4645..538ffc8441be15a2217208392283cb6a6a5131d5 100644 (file)
@@ -1,3 +1,26 @@
+2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * IRegistrationServices.cs:
+       * ITypeLibConverter.cs:
+       * ITypeLibExporterNameProvider.cs:
+       * ITypeLibExporterNotifySink.cs:
+       * ITypeLibImporterNotifySink.cs: Added missing attribute
+       * UCOMIBindCtx.cs: Added missing attribute, fixed in attribute
+       * UCOMIConnectionPoint.cs:
+       * UCOMIConnectionPointContainer.cs:
+       * UCOMIEnumConnectionPoints.cs:
+       * UCOMIEnumConnections.cs:
+       * UCOMIEnumMoniker.cs:
+       * UCOMIEnumString.cs:
+       * UCOMIEnumVARIANT.cs:
+       * UCOMIMoniker.cs:
+       * UCOMIPersistFile.cs:
+       * UCOMIRunningObjectTable.cs:
+       * UCOMIStream.cs:
+       * UCOMITypeComp.cs:
+       * UCOMITypeInfo.cs:
+       * UCOMITypeLib.cs: Added missing attribute
+
 2003-08-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
 
        * UCOMIBindCtx.cs: Added and implemented
index a42e935895c5f392144023854bdb3af412c8b71e..c006a1bc56d168f65f18edb82483a0735822043a 100755 (executable)
@@ -11,7 +11,7 @@ using System.Reflection;
 \r
 namespace System.Runtime.InteropServices {\r
 \r
-       //[Guid("")]\r
+       [Guid("CCBD682C-73A5-4568-B8B0-C7007E11ABA2")]\r
        public interface IRegistrationServices {\r
                Guid GetManagedCategoryGuid ();\r
                string GetProgIdForType (Type type);\r
index f7838977e04cfff26e3659b9afe88b4f2082dcfa..63efb4a7a5f2e9ced0de727db9309931242b8c93 100644 (file)
@@ -12,7 +12,7 @@ using System.Reflection.Emit;
 \r
 namespace System.Runtime.InteropServices {\r
 \r
-       //[Guid("")]\r
+       [Guid("F1C3BF78-C3E4-11D3-88E7-00902754C43A")]\r
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]\r
        public interface ITypeLibConverter {\r
                object ConvertAssemblyToTypeLib (Assembly assembly, string typeLibName, TypeLibExporterFlags flags, ITypeLibExporterNotifySink notifySink);\r
index 3e937ae4b22438f289dc39e08a43a714a14a2314..69f1a2d68842b189b332561cd7d43cce3d992379 100755 (executable)
@@ -9,7 +9,7 @@
 \r
 namespace System.Runtime.InteropServices {\r
 \r
-       //[Guid("")]\r
+       [Guid("fa1f3615-acb9-486d-9eac-1bef87e36b09")]\r
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]\r
        public interface ITypeLibExporterNameProvider {\r
                string[] GetNames ();\r
index 547b87d73d3bcfee2863df8f62c966727297922f..4aa0036b83f945972b72e833b324e563f755d2da 100644 (file)
@@ -11,7 +11,7 @@ using System.Reflection;
 \r
 namespace System.Runtime.InteropServices {\r
 \r
-       //[Guid("")]\r
+       [Guid("f1c3bf77-c3e4-11d3-88e7-00902754c43a")]\r
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]\r
        public interface ITypeLibExporterNotifySink {\r
                void ReportEvent (ExporterEventKind eventKind, int eventCode, string eventMsg);\r
index 3c9199e40631ed1372c1142e4080c21017def9df..63fd4e158d27a34808402f897153cd62abc7a271 100755 (executable)
@@ -11,7 +11,7 @@ using System.Reflection;
 \r
 namespace System.Runtime.InteropServices {\r
 \r
-       //[Guid("")]\r
+       [Guid("f1c3bf76-c3e4-11d3-88e7-00902754c43a")]\r
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]\r
        public interface ITypeLibImporterNotifySink {\r
                void ReportEvent(ImporterEventKind eventKind, int eventCode, string eventMsg);\r
index 1b0c9ed016e569605cf0642a519327f77deea482..8078fb7c217fd08878b695c0d7fa1d51ccc79d8b 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("0000000e-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIBindCtx
        {
@@ -21,6 +22,6 @@ namespace System.Runtime.InteropServices
                void ReleaseBoundObjects ();
                void RevokeObjectBound (object punk);
                void RevokeObjectParam (string pszKey);
-               void SetBindOptions (ref BIND_OPTS pbindopts);
+               void SetBindOptions ([In] ref BIND_OPTS pbindopts);
        }
 }
index db6a0c7b5264f5cb30c7cd106476ae44a1a6e5bc..f54e9dcdb645a10cd8db824a945085fa47c22cde 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("b196b286-bab4-101a-b69c-00aa00341d07")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIConnectionPoint
        {
index f34c40b678c70f080e7e9ba95aa7b6e9750c5280..3336985ee1ecd10fab678d09938e9c44a7dfdb8d 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("b196b284-bab4-101a-b69c-00aa00341d07")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIConnectionPointContainer
        {
index b3d0b5cd58ae9cd390b47b4ad3f73ce67619b452..e7dc143c72e0bd912eb895f66f2fbe0c752106d2 100644 (file)
@@ -9,11 +9,12 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("b196b285-bab4-101a-b69c-00aa00341d07")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIEnumConnectionPoints
        {
                void Clone (ref UCOMIEnumConnectionPoints ppenum);
-               int Next (int celt, UCOMIConnectionPoint[] rgelt, ref int pceltFetched);
+               int Next (int celt,out UCOMIConnectionPoint[] rgelt, ref int pceltFetched);
                int Reset ();
                int Skip (int celt);
        }
index 300930ebb2a4e3c26e29d01b62b8110820604588..edaa1d73c55815a8575ec4ec24b3d316c2a904b7 100644 (file)
@@ -9,11 +9,12 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("b196b287-bab4-101a-b69c-00aa00341d07")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIEnumConnections
        {
                void Clone (ref UCOMIEnumConnections ppenum);
-               int Next (int celt, CONNECTDATA[] rgelt, ref int pceltFetched);
+               int Next (int celt, out CONNECTDATA[] rgelt, ref int pceltFetched);
                void Reset ();
                int Skip (int celt);
        }
index acdbdab9ae2f5ad60aa4abcaae5b9b0fe8155d82..32a37d75fb2b1534cd7c975dbe80666e3c9dc077 100644 (file)
@@ -9,11 +9,12 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("00000102-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIEnumMoniker
        {
                void Clone (ref UCOMIEnumMoniker ppenum);
-               int Next (int celt, UCOMIMoniker[] rgelt, ref int pceltFetched);
+               int Next (int celt, out UCOMIMoniker[] rgelt, ref int pceltFetched);
                int Reset ();
                int Skip (int celt);
        }
index 052b12f460c220b390475b4a786f47bc961c3e7d..6d6fc4bf3899c83bfdec011e417b1d3f04d85e89 100644 (file)
@@ -9,11 +9,12 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("00000101-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIEnumString
        {
                void Clone (ref UCOMIEnumString ppenum);
-               int Next (int celt, string[] rgelt, ref int pceltFetched);
+               int Next (int celt, out string[] rgelt, ref int pceltFetched);
                int Reset ();
                int Skip (int celt);
        }
index 70f5068a89d8c585a62c12976af23aa2f2460cdb..d2c353f348c4477b6481a5c3bf8475582b7740df 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("00020404-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIEnumVARIANT
        {
index f3ababd1533abdec2552b943675e16276160107b..a714445968d3068958e094c336cf307dc0af73ca 100644 (file)
@@ -9,11 +9,12 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("0000000f-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIMoniker
        {
-               void BindToObject (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft, ref Guid riidResult, ref object ppvResult);
-               void BindToStorage (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft, ref Guid riid, ref object ppvObj);
+               void BindToObject (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft, [In] ref Guid riidResult, ref object ppvResult);
+               void BindToStorage (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft, [In] ref Guid riid, ref object ppvObj);
                void CommonPrefixWith (UCOMIMoniker pmkOther, ref UCOMIMoniker ppmkPrefix);
                void ComposeWith (UCOMIMoniker pmkRight, bool fOnlyIfNotGeneric, ref UCOMIMoniker ppmkComposite);
                void Enum (bool fForward, ref UCOMIEnumMoniker ppenumMoniker);
index 0b644268cb00baa765510b0a03efc34aa760298b..d58e11b0c5b82ce6522452d9a3148750d2bc1b4f 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("0000010b-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIPersistFile
        {
index 2d2cd02db65ba70bec0ac60bbff3f3b5d4cc58e3..5f4b49e0bafc1d489483ffe32bba6713e4414669 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("00000010-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIRunningObjectTable
        {
index 74efa92e2271fd0e27065a3c86074b699c9822f1..da90cbb8895108263aaa6580fc39d282f6defb49 100644 (file)
@@ -9,6 +9,7 @@ using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Guid ("0000000c-0000-0000-c000-000000000046")]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMIStream
        {
@@ -16,7 +17,7 @@ namespace System.Runtime.InteropServices
                void Commit (int grfCommitFlags);
                void CopyTo (UCOMIStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
                void LockRegion (long libOffset, long cb, int dwLockType);
-               void Read (byte[] pv, int cb, IntPtr pcbRead);
+               void Read (out byte[] pv, int cb, IntPtr pcbRead);
                void Revert ();
                void Seek (long dlibMove, int dwOrigin, IntPtr plibNewPosition);
                void SetSize (long libNewSize);
index 8bb02c82f4911c5d14cf3881bd3fdf3da38f0b60..87c43e0c8d1639c3bd71fb23d467ecb925f91e78 100644 (file)
@@ -1,5 +1,5 @@
 
-// System.Runtime.InteropServices/UCOMITypeComp.cs
+// System.Runtime.InteropServices.UCOMITypeComp.cs
 //
 // Paolo Molaro (lupus@ximian.com)
 //
@@ -10,7 +10,7 @@ using System;
 namespace System.Runtime.InteropServices
 {
 
-       //[Guid("")]
+       [Guid("00020403-0000-0000-c000-000000000046")]
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMITypeComp {
                void Bind( string szName, int lHashVal, short wFlags, out UCOMITypeInfo ppTInfo, out DESCKIND pDescKind, out BINDPTR pBindPtr);
index 1e36703c46d95ce3b038e139cc793de88d9e8b62..74fb885bdfaa1f9ee6038d583b789e9ec2d70189 100644 (file)
@@ -1,5 +1,5 @@
 
-// System.Runtime.InteropServices/UCOMITypeInfo.cs
+// System.Runtime.InteropServices.UCOMITypeInfo.cs
 //
 // Paolo Molaro (lupus@ximian.com)
 //
@@ -10,7 +10,7 @@ using System;
 namespace System.Runtime.InteropServices
 {
 
-       //[Guid("")]
+       [Guid("00020401-0000-0000-c000-000000000046")]
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMITypeInfo {
                void AddressOfMember (int memid, INVOKEKIND invKind, out IntPtr ppv); 
@@ -19,10 +19,10 @@ namespace System.Runtime.InteropServices
                void GetDllEntry (int memid, INVOKEKIND invKind, out string pBstrDllName, out string pBstrName, out short pwOrdinal);
                void GetDocumentation (int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
                void GetFuncDesc (int index, out IntPtr ppFuncDesc);
-               void GetIDsOfNames (string[] rgszNames, int cNames, int[] pMemId);
+               void GetIDsOfNames ([In] string[] rgszNames, int cNames, out int[] pMemId);
                void GetImplTypeFlags (int index, out int pImplTypeFlags);
                void GetMops (int memid, out string pBstrMops);
-               void GetNames (int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
+               void GetNames (int memid, out string[] rgBstrNames, int cMaxNames, out int pcNames);
                void GetRefTypeInfo (int hRef, out UCOMITypeInfo ppTI);
                void GetRefTypeOfImplType (int index, out int href);
                void GetTypeAttr (out IntPtr ppTypeAttr);
index db6593d6489777ac60df3ad7b13e0e39c527b5e6..b1889235e9cf9a3526aaecaefa97e7aa265d3a77 100644 (file)
@@ -1,5 +1,5 @@
 
-// System.Runtime.InteropServices/UCOMITypeLib.cs
+// System.Runtime.InteropServices.UCOMITypeLib.cs
 //
 // Paolo Molaro (lupus@ximian.com)
 //
@@ -10,10 +10,10 @@ using System;
 namespace System.Runtime.InteropServices
 {
 
-       //[Guid("")]
+       [Guid("00020402-0000-0000-c000-000000000046")]
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
        public interface UCOMITypeLib { 
-               void FindName( string szNameBuf, int lHashVal, UCOMITypeInfo[] ppTInfo, int[] rgMemId, ref short pcFound);
+               void FindName( string szNameBuf, int lHashVal, out UCOMITypeInfo[] ppTInfo, out int[] rgMemId, ref short pcFound);
                void GetDocumentation( int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
                void GetLibAttr( out IntPtr ppTLibAttr);
                void GetTypeComp( out UCOMITypeComp ppTComp);