//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
//
// (C) 2002 Ximian, Inc.
-using System;
-using System.Runtime.InteropServices;
-
namespace System.Runtime.InteropServices
{
-
+#if NET_2_0
+ [Obsolete]
+ [ComImport]
+#endif
[Guid("00020402-0000-0000-c000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface UCOMITypeLib {
- void FindName ([MarshalAs(UnmanagedType.LPWStr)] string szNameBuf, int lHashVal, [Out, MarshalAs (UnmanagedType.LPArray, ArraySubType = Consts.UnmanagedType_80)] UCOMITypeInfo[] ppTInfo, [Out, MarshalAs (UnmanagedType.LPArray, ArraySubType = Consts.UnmanagedType_80)] 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);
- void GetTypeInfo (int index, out UCOMITypeInfo ppTI);
+#if NET_2_0
[PreserveSig]
+#endif
int GetTypeInfoCount ();
- void GetTypeInfoOfGuid (ref Guid guid, out UCOMITypeInfo ppTInfo);
+ void GetTypeInfo (int index, out UCOMITypeInfo ppTI);
void GetTypeInfoType (int index, out TYPEKIND pTKind);
+ void GetTypeInfoOfGuid (ref Guid guid, out UCOMITypeInfo ppTInfo);
+ void GetLibAttr (out IntPtr ppTLibAttr);
+ void GetTypeComp (out UCOMITypeComp ppTComp);
+ void GetDocumentation (int index, out string strName, out string strDocString, out int dwHelpContext, out string strHelpFile);
[return: MarshalAs (UnmanagedType.Bool)]
bool IsName ([MarshalAs(UnmanagedType.LPWStr)] string szNameBuf, int lHashVal);
+ void FindName ([MarshalAs(UnmanagedType.LPWStr)] string szNameBuf, int lHashVal, [Out, MarshalAs (UnmanagedType.LPArray)] UCOMITypeInfo[] ppTInfo, [Out, MarshalAs (UnmanagedType.LPArray)] int[] rgMemId, ref short pcFound);
+#if NET_2_0
[PreserveSig]
+#endif
void ReleaseTLibAttr (IntPtr pTLibAttr);
}
}