//
-// 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;
-
+#if !FULL_AOT_RUNTIME
namespace System.Runtime.InteropServices
{
-
+ [Obsolete]
+ [ComImport]
[Guid("00020402-0000-0000-c000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface UCOMITypeLib {
- 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);
- void GetTypeInfo( int index, out UCOMITypeInfo ppTI);
- int GetTypeInfoCount();
- void GetTypeInfoOfGuid( ref Guid guid, out UCOMITypeInfo ppTInfo);
- void GetTypeInfoType( int index, out TYPEKIND pTKind);
- bool IsName( string szNameBuf, int lHashVal);
- void ReleaseTLibAttr( IntPtr pTLibAttr);
+ [PreserveSig]
+ int GetTypeInfoCount ();
+ 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);
+ [PreserveSig]
+ void ReleaseTLibAttr (IntPtr pTLibAttr);
}
}
+#endif