c11244871ca75f51e639289ed411adc279d6185f
[mono.git] / mcs / class / referencesource / mscorlib / system / runtime / interopservices / ucomienumconnections.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*=============================================================================
7 **
8 ** Class: UCOMIEnumConnections
9 **
10 **
11 ** Purpose: UCOMIEnumConnections interface definition.
12 **
13 **
14 =============================================================================*/
15
16 namespace System.Runtime.InteropServices
17 {
18     using System;
19
20     [Obsolete("Use System.Runtime.InteropServices.ComTypes.CONNECTDATA instead. http://go.microsoft.com/fwlink/?linkid=14202", false)]
21     [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
22
23     public struct CONNECTDATA
24     {   
25         [MarshalAs(UnmanagedType.Interface)] 
26         public Object pUnk;
27         public int dwCookie;
28     }
29 #if !MOBILE
30     [Obsolete("Use System.Runtime.InteropServices.ComTypes.IEnumConnections instead. http://go.microsoft.com/fwlink/?linkid=14202", false)]
31     [Guid("B196B287-BAB4-101A-B69C-00AA00341D07")]
32     [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
33     [ComImport]
34     public interface UCOMIEnumConnections
35     {
36         [PreserveSig]
37         int Next(int celt, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0), Out] CONNECTDATA[] rgelt, out int pceltFetched);
38         [PreserveSig]
39         int Skip(int celt);
40         [PreserveSig]
41         void Reset();
42         void Clone(out UCOMIEnumConnections ppenum);
43     }
44 #endif
45 }