using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.Lmx; [ComImport] [Guid("FB91DD91-83C2-413C-BEB0-95338B522B14")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IDictionary { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void Initialize([In][MarshalAs(UnmanagedType.LPWStr)] string vendorName, [In][MarshalAs(UnmanagedType.LPWStr)] string groupID, [In][MarshalAs(UnmanagedType.LPWStr)] string dictionaryFileName); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void SetLocaleOverride([In] int localeId); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.BStr)] string GetText([In] int index); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.BStr)] string GetTextWithPhraseKey([In][MarshalAs(UnmanagedType.BStr)] string key); }