1 // THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl 2 // EDITING IS PROBABLY UNWISE 3 // Permission is hereby granted, free of charge, to any person obtaining 4 // a copy of this software and associated documentation files (the 5 // "Software"), to deal in the Software without restriction, including 6 // without limitation the rights to use, copy, modify, merge, publish, 7 // distribute, sublicense, and/or sell copies of the Software, and to 8 // permit persons to whom the Software is furnished to do so, subject to 9 // the following conditions: 10 // 11 // The above copyright notice and this permission notice shall be 12 // included in all copies or substantial portions of the Software. 13 // 14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 // 22 // Copyright (c) 2007, 2008 Novell, Inc. 23 // 24 // Authors: 25 // Andreia Gaita (avidigal@novell.com) 26 // 27 28 using System; 29 using System.Runtime.InteropServices; 30 using System.Runtime.CompilerServices; 31 using System.Text; 32 33 namespace Mono.Mozilla { 34 35 [Guid ("986c11d0-f340-11d4-9075-0010a4e73d9a")] 36 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] 37 [ComImport ()] 38 internal interface nsIClassInfo { 39 40 #region nsIClassInfo 41 [PreserveSigAttribute] 42 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getInterfaces( out UInt32 count, out IntPtr array)43 int getInterfaces ( 44 out UInt32 count, 45 out IntPtr array); 46 47 [PreserveSigAttribute] 48 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getHelperForLanguage( UInt32 language,[MarshalAs (UnmanagedType.Interface)] out IntPtr ret)49 int getHelperForLanguage ( 50 UInt32 language,[MarshalAs (UnmanagedType.Interface)] out IntPtr ret); 51 52 [PreserveSigAttribute] 53 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getContractID( ref IntPtr ret)54 int getContractID ( ref IntPtr ret); 55 56 [PreserveSigAttribute] 57 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getClassDescription( ref IntPtr ret)58 int getClassDescription ( ref IntPtr ret); 59 60 [PreserveSigAttribute] 61 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getClassID([MarshalAs (UnmanagedType.LPStruct)] out Guid ret)62 int getClassID ([MarshalAs (UnmanagedType.LPStruct)] out Guid ret); 63 64 [PreserveSigAttribute] 65 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getImplementationLanguage( out UInt32 ret)66 int getImplementationLanguage ( out UInt32 ret); 67 68 [PreserveSigAttribute] 69 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getFlags( out UInt32 ret)70 int getFlags ( out UInt32 ret); 71 72 [PreserveSigAttribute] 73 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] getClassIDNoAlloc([MarshalAs (UnmanagedType.LPStruct)] out Guid ret)74 int getClassIDNoAlloc ([MarshalAs (UnmanagedType.LPStruct)] out Guid ret); 75 76 #endregion 77 } 78 79 80 internal class nsClassInfo { GetProxy(Mono.WebBrowser.IWebBrowser control, nsIClassInfo obj)81 public static nsIClassInfo GetProxy (Mono.WebBrowser.IWebBrowser control, nsIClassInfo obj) 82 { 83 object o = Base.GetProxyForObject (control, typeof(nsIClassInfo).GUID, obj); 84 return o as nsIClassInfo; 85 } 86 } 87 } 88