public void ImmEscapeTest() { int max = GetKeyboardLayoutList(0, null); HKL[] layouts = new HKL[max]; Assert.That(GetKeyboardLayoutList(max, layouts), Is.EqualTo(max)); SafeCoTaskMemString str = new(256); StringBuilder sb = new(256); foreach (var hkl in layouts) { str.Zero(); sb.Clear(); var hLen = ImmEscape(hkl, default, IME_ESC.IME_ESC_GETHELPFILENAME, str).ToInt32();
public static extern BOOL ImmIsIME(HKL param0);
public static extern HKL ActivateKeyboardLayout(HKL hkl, uint Flags);
public static extern uint ImmGetDescriptionW(HKL hKL, byte[] lpszDescription, uint uBufLen);
public HRESULT Configure(HKL hKL, HWND hWnd, [NativeTypeName("DWORD")] uint dwMode, REGISTERWORDW *pRegisterWord) { return(((delegate * unmanaged <IActiveIME2 *, HKL, HWND, uint, REGISTERWORDW *, int>)(lpVtbl[5]))((IActiveIME2 *)Unsafe.AsPointer(ref this), hKL, hWnd, dwMode, pRegisterWord)); }
public static extern IntPtr ImmEscape([In] HKL hKL, [In] HIMC hIMC, IME_ESC uEscape, [In] IntPtr lpData = default);
public HRESULT RegisterProfile([NativeTypeName("const IID &")] Guid *rclsid, [NativeTypeName("LANGID")] ushort langid, [NativeTypeName("const GUID &")] Guid *guidProfile, [NativeTypeName("const WCHAR *")] ushort *pchDesc, [NativeTypeName("ULONG")] uint cchDesc, [NativeTypeName("const WCHAR *")] ushort *pchIconFile, [NativeTypeName("ULONG")] uint cchFile, [NativeTypeName("ULONG")] uint uIconIndex, HKL hklsubstitute, [NativeTypeName("DWORD")] uint dwPreferredLayout, BOOL bEnabledByDefault, [NativeTypeName("DWORD")] uint dwFlags) { return(((delegate * unmanaged <ITfInputProcessorProfileMgr *, Guid *, ushort, Guid *, ushort *, uint, ushort *, uint, uint, HKL, uint, BOOL, uint, int>)(lpVtbl[8]))((ITfInputProcessorProfileMgr *)Unsafe.AsPointer(ref this), rclsid, langid, guidProfile, pchDesc, cchDesc, pchIconFile, cchFile, uIconIndex, hklsubstitute, dwPreferredLayout, bEnabledByDefault, dwFlags)); }
public HRESULT SubstituteKeyboardLayout([NativeTypeName("const IID &")] Guid *rclsid, [NativeTypeName("LANGID")] ushort langid, [NativeTypeName("const GUID &")] Guid *guidProfile, HKL hKL) { return(((delegate * unmanaged <ITfInputProcessorProfiles *, Guid *, ushort, Guid *, HKL, int>)(lpVtbl[20]))((ITfInputProcessorProfiles *)Unsafe.AsPointer(ref this), rclsid, langid, guidProfile, hKL)); }
public static extern uint ImmGetRegisterWordStyleW(HKL param0, uint nItem, [NativeTypeName("LPSTYLEBUFW")] STYLEBUFW *lpStyleBuf);
public static extern BOOL ImmUnregisterWordW(HKL param0, [NativeTypeName("LPCWSTR")] ushort *lpszReading, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPCWSTR")] ushort *lpszUnregister);
public static extern BOOL ImmRegisterWordA(HKL param0, [NativeTypeName("LPCSTR")] sbyte *lpszReading, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPCSTR")] sbyte *lpszRegister);
public static extern uint ImmGetConversionListW(HKL param0, HIMC param1, [NativeTypeName("LPCWSTR")] ushort *lpSrc, [NativeTypeName("LPCANDIDATELIST")] CANDIDATELIST *lpDst, [NativeTypeName("DWORD")] uint dwBufLen, uint uFlag);
public static extern LRESULT ImmEscapeW(HKL param0, HIMC param1, uint param2, [NativeTypeName("LPVOID")] void *param3);
public static extern BOOL ImmConfigureIMEW(HKL param0, HWND param1, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPVOID")] void *param3);
public static extern BOOL ImmSetHotKey([NativeTypeName("DWORD")] uint param0, uint param1, uint param2, HKL param3);
public static extern HKL ActivateKeyboardLayout( [In][MarshalAs(UnmanagedType.U4)] HKL hkl, [In][MarshalAs(UnmanagedType.U4)] KLF flags);
public static extern uint ImmEnumRegisterWordA(HKL param0, [NativeTypeName("REGISTERWORDENUMPROCA")] delegate *unmanaged <sbyte *, uint, sbyte *, void *, int> param1, [NativeTypeName("LPCSTR")] sbyte *lpszReading, [NativeTypeName("DWORD")] uint param3, [NativeTypeName("LPCSTR")] sbyte *lpszRegister, [NativeTypeName("LPVOID")] void *param5);
public HRESULT GetProfile([NativeTypeName("DWORD")] uint dwProfileType, [NativeTypeName("LANGID")] ushort langid, [NativeTypeName("const IID &")] Guid *clsid, [NativeTypeName("const GUID &")] Guid *guidProfile, HKL hkl, TF_INPUTPROCESSORPROFILE *pProfile) { return(((delegate * unmanaged <ITfInputProcessorProfileMgr *, uint, ushort, Guid *, Guid *, HKL, TF_INPUTPROCESSORPROFILE *, int>)(lpVtbl[5]))((ITfInputProcessorProfileMgr *)Unsafe.AsPointer(ref this), dwProfileType, langid, clsid, guidProfile, hkl, pProfile)); }
public static extern uint ImmGetDescriptionA(HKL param0, [NativeTypeName("LPSTR")] sbyte *lpszDescription, uint uBufLen);
public static extern bool ImmSetHotKey(IME_HOTKEY dwHotKeyID, HotKeyModifiers uModifiers, VK uVKey, HKL hKL);
public static extern uint ImmGetDescriptionW(HKL param0, [NativeTypeName("LPWSTR")] ushort *lpszDescription, uint uBufLen);
public static extern bool ImmRegisterWord(HKL hKL, [MarshalAs(UnmanagedType.LPTStr)] string lpszReading, IME_REGWORD_STYLE dwStyle, [MarshalAs(UnmanagedType.LPTStr)] string lpszRegister);
public static extern uint ImmGetIMEFileNameA(HKL param0, [NativeTypeName("LPSTR")] sbyte *lpszFileName, uint uBufLen);
public static string ImmGetDescription(this HKL hKL) => BufferReader.ReadString((buf, size) => Imm32.ImmGetDescriptionW(hKL, buf, size));
public static extern uint ImmGetIMEFileNameW(HKL param0, [NativeTypeName("LPWSTR")] ushort *lpszFileName, uint uBufLen);
public HRESULT OnActivated([NativeTypeName("DWORD")] uint dwProfileType, [NativeTypeName("LANGID")] ushort langid, [NativeTypeName("const IID &")] Guid *clsid, [NativeTypeName("const GUID &")] Guid *catid, [NativeTypeName("const GUID &")] Guid *guidProfile, HKL hkl, [NativeTypeName("DWORD")] uint dwFlags) { return(((delegate * unmanaged <ITfInputProcessorProfileActivationSink *, uint, ushort, Guid *, Guid *, Guid *, HKL, uint, int>)(lpVtbl[3]))((ITfInputProcessorProfileActivationSink *)Unsafe.AsPointer(ref this), dwProfileType, langid, clsid, catid, guidProfile, hkl, dwFlags)); }
public static extern uint ImmGetProperty(HKL param0, [NativeTypeName("DWORD")] uint param1);