dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropService


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices UCOMIBindCtx.cs,1.2,1.3UCOMIConnectionPoint.cs,1.2,1.3 UCOMIConnectionPointContainer.cs,1.2,1.3 UCOMIEnumConnectionPoints.cs,1.2,1.3 UCOMIEnumConnections.cs,1.2,1.3 UCOMIEnumMoniker.cs,1.2,1.3 UCOMIEnumString.cs,1.2,1.3 UCOMIEnumVARIANT.cs,1.2,1.3 UCOMIMoniker.cs,1.2,1.3 UCOMIPersistFile.cs,1.2,1.3 UCOMIRunningObjectTable.cs,1.2,1.3 UCOMIStream.cs,1.2,1.3 UCOMITypeInfo.cs,1.3,1.4UCOMITypeLib.cs,1.3,1.4
Date: Thu, 24 Apr 2003 23:53:09 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices
In directory 
subversions:/tmp/cvs-serv5946/runtime/System/Runtime/InteropServices

Modified Files:
        Marshal.cs UCOMIBindCtx.cs 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 
Log Message:


Signature-compatibility fixes to a large number of classes.


Index: Marshal.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/Marshal.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Marshal.cs  15 Apr 2003 11:22:33 -0000      1.7
--- Marshal.cs  25 Apr 2003 03:53:07 -0000      1.8
***************
*** 29,38 ****
--- 29,45 ----
  using System.Reflection;
  using System.Threading;
+ using System.Security;
  
  // This class is not ECMA-compatible, strictly speaking.  But it is
  // usually necessary for any application that uses PInvoke or C.
  
+ #if !ECMA_COMPAT
+ [SuppressUnmanagedCodeSecurity]
+ #endif
  public sealed class Marshal
  {
+       // This class cannot be instantiated.
+       private Marshal() {}
+ 
        // Character size information.
        public static readonly int SystemDefaultCharSize = 1;
***************
*** 276,279 ****
--- 283,300 ----
                        }
  
+       // Write a 16-bit integer (as a char) to an unmanaged pointer.
+       public static void WriteInt16(IntPtr ptr, int ofs, char val)
+                       {
+                               WriteInt16(ptr, ofs, (short)val);
+                       }
+       public static void WriteInt16(IntPtr ptr, char val)
+                       {
+                               WriteInt16(ptr, 0, (short)val);
+                       }
+       public static void WriteInt16(Object ptr, int ofs, char val)
+                       {
+                               WriteInt16(ObjectToPtr(ptr), ofs, (short)val);
+                       }
+ 
        // Write a 32-bit integer to an unmanaged pointer.
        [MethodImpl(MethodImplOptions.InternalCall)]
***************
*** 361,365 ****
                        }
  #if CONFIG_REFLECTION
!       public static int GetComSlotForMethodInfo(MethodInfo m)
                        {
                                throw new NotImplementedException();
--- 382,386 ----
                        }
  #if CONFIG_REFLECTION
!       public static int GetComSlotForMethodInfo(MemberInfo m)
                        {
                                throw new NotImplementedException();
***************
*** 393,396 ****
--- 414,422 ----
                                throw new NotImplementedException();
                        }
+       public static Object[] GetObjectsForNativeVariants
+                               (IntPtr aSrcNativeVariant, int cVars)
+                       {
+                               throw new NotImplementedException();
+                       }
        public static int GetStartComSlot(Type t)
                        {
***************
*** 568,573 ****
  
        [MethodImpl(MethodImplOptions.InternalCall)]
!       extern public static void PtrToStructureInternal(IntPtr ptr, 
!                                       Object structure);
        public static void PtrToStructure(IntPtr ptr, Object structure)
        {
--- 594,599 ----
  
        [MethodImpl(MethodImplOptions.InternalCall)]
!       extern private static void PtrToStructureInternal
!                               (IntPtr ptr, Object structure);
        public static void PtrToStructure(IntPtr ptr, Object structure)
        {

Index: UCOMIBindCtx.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIBindCtx.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIBindCtx.cs     23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIBindCtx.cs     25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("0000000e-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIBindCtx
  {

Index: UCOMIConnectionPoint.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIConnectionPoint.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIConnectionPoint.cs     23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIConnectionPoint.cs     25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("B196B286-BAB4-101A-B69C-00AA00341D07")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIConnectionPoint
  {

Index: UCOMIConnectionPointContainer.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIConnectionPointContainer.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIConnectionPointContainer.cs    23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIConnectionPointContainer.cs    25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("B196B284-BAB4-101A-B69C-00AA00341D07")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIConnectionPointContainer
  {

Index: UCOMIEnumConnectionPoints.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIEnumConnectionPoints.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIEnumConnectionPoints.cs        23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIEnumConnectionPoints.cs        25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("B196B285-BAB4-101A-B69C-00AA00341D07")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIEnumConnectionPoints
  {

Index: UCOMIEnumConnections.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIEnumConnections.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIEnumConnections.cs     23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIEnumConnections.cs     25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("B196B287-BAB4-101A-B69C-00AA00341D07")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIEnumConnections
  {

Index: UCOMIEnumMoniker.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIEnumMoniker.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIEnumMoniker.cs 23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIEnumMoniker.cs 25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00000102-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIEnumMoniker
  {

Index: UCOMIEnumString.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIEnumString.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIEnumString.cs  23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIEnumString.cs  25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00000101-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIEnumString
  {

Index: UCOMIEnumVARIANT.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIEnumVARIANT.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIEnumVARIANT.cs 23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIEnumVARIANT.cs 25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00020404-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIEnumVARIANT
  {

Index: UCOMIMoniker.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIMoniker.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIMoniker.cs     23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIMoniker.cs     25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("0000000f-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIMoniker
  {

Index: UCOMIPersistFile.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIPersistFile.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIPersistFile.cs 23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIPersistFile.cs 25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("0000010b-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIPersistFile
  {

Index: UCOMIRunningObjectTable.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIRunningObjectTable.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIRunningObjectTable.cs  23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIRunningObjectTable.cs  25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00000010-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIRunningObjectTable
  {

Index: UCOMIStream.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMIStream.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMIStream.cs      23 Apr 2003 05:39:49 -0000      1.2
--- UCOMIStream.cs      25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("0000000c-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMIStream
  {

Index: UCOMITypeComp.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMITypeComp.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** UCOMITypeComp.cs    23 Apr 2003 05:39:49 -0000      1.2
--- UCOMITypeComp.cs    25 Apr 2003 03:53:07 -0000      1.3
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00020403-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMITypeComp
  {

Index: UCOMITypeInfo.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMITypeInfo.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** UCOMITypeInfo.cs    23 Apr 2003 05:39:49 -0000      1.3
--- UCOMITypeInfo.cs    25 Apr 2003 03:53:07 -0000      1.4
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00020401-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMITypeInfo
  {

Index: UCOMITypeLib.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/UCOMITypeLib.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** UCOMITypeLib.cs     23 Apr 2003 05:39:49 -0000      1.3
--- UCOMITypeLib.cs     25 Apr 2003 03:53:07 -0000      1.4
***************
*** 27,30 ****
--- 27,31 ----
  [Guid("00020402-0000-0000-C000-000000000046")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [ComImport]
  public interface UCOMITypeLib
  {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]