using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.Lmx; [ComImport] [ClassInterface(ClassInterfaceType.None)] [TypeLibType(TypeLibTypeFlags.FCanCreate)] [Guid("FB55EF60-8D1F-11D4-A9A3-0060976445E9")] public class DictionaryClass : IDictionary, Dictionary { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] public virtual extern 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)] public virtual extern void SetLocaleOverride([In] int localeId); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.BStr)] public virtual extern string GetText([In] int index); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.BStr)] public virtual extern string GetTextWithPhraseKey([In][MarshalAs(UnmanagedType.BStr)] string key); }