Exemplo n.º 1
0
        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();
Exemplo n.º 2
0
 public static extern BOOL ImmIsIME(HKL param0);
Exemplo n.º 3
0
 public static extern HKL ActivateKeyboardLayout(HKL hkl, uint Flags);
Exemplo n.º 4
0
 public static extern uint ImmGetDescriptionW(HKL hKL, byte[] lpszDescription, uint uBufLen);
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 6
0
 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));
 }
Exemplo n.º 8
0
 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));
 }
Exemplo n.º 9
0
 public static extern uint ImmGetRegisterWordStyleW(HKL param0, uint nItem, [NativeTypeName("LPSTYLEBUFW")] STYLEBUFW *lpStyleBuf);
Exemplo n.º 10
0
 public static extern BOOL ImmUnregisterWordW(HKL param0, [NativeTypeName("LPCWSTR")] ushort *lpszReading, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPCWSTR")] ushort *lpszUnregister);
Exemplo n.º 11
0
 public static extern BOOL ImmRegisterWordA(HKL param0, [NativeTypeName("LPCSTR")] sbyte *lpszReading, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPCSTR")] sbyte *lpszRegister);
Exemplo n.º 12
0
 public static extern uint ImmGetConversionListW(HKL param0, HIMC param1, [NativeTypeName("LPCWSTR")] ushort *lpSrc, [NativeTypeName("LPCANDIDATELIST")] CANDIDATELIST *lpDst, [NativeTypeName("DWORD")] uint dwBufLen, uint uFlag);
Exemplo n.º 13
0
 public static extern LRESULT ImmEscapeW(HKL param0, HIMC param1, uint param2, [NativeTypeName("LPVOID")] void *param3);
Exemplo n.º 14
0
 public static extern BOOL ImmConfigureIMEW(HKL param0, HWND param1, [NativeTypeName("DWORD")] uint param2, [NativeTypeName("LPVOID")] void *param3);
Exemplo n.º 15
0
 public static extern BOOL ImmSetHotKey([NativeTypeName("DWORD")] uint param0, uint param1, uint param2, HKL param3);
Exemplo n.º 16
0
 public static extern HKL ActivateKeyboardLayout(
     [In][MarshalAs(UnmanagedType.U4)] HKL hkl,
     [In][MarshalAs(UnmanagedType.U4)] KLF flags);
Exemplo n.º 17
0
 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));
 }
Exemplo n.º 19
0
 public static extern uint ImmGetDescriptionA(HKL param0, [NativeTypeName("LPSTR")] sbyte *lpszDescription, uint uBufLen);
Exemplo n.º 20
0
 public static extern bool ImmSetHotKey(IME_HOTKEY dwHotKeyID, HotKeyModifiers uModifiers, VK uVKey, HKL hKL);
Exemplo n.º 21
0
 public static extern uint ImmGetDescriptionW(HKL param0, [NativeTypeName("LPWSTR")] ushort *lpszDescription, uint uBufLen);
Exemplo n.º 22
0
 public static extern bool ImmRegisterWord(HKL hKL, [MarshalAs(UnmanagedType.LPTStr)] string lpszReading, IME_REGWORD_STYLE dwStyle, [MarshalAs(UnmanagedType.LPTStr)] string lpszRegister);
Exemplo n.º 23
0
 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));
Exemplo n.º 25
0
 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));
 }
Exemplo n.º 27
0
 public static extern uint ImmGetProperty(HKL param0, [NativeTypeName("DWORD")] uint param1);