Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NativeMethods.cs
Go to the documentation of this file.
1using System;
3
5
6internal static class NativeMethods
7{
8 [DllImport("Imm32.dll")]
9 public static extern bool ImmSetOpenStatus(IntPtr hImc, bool bOpen);
10
11 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
12 public static extern IntPtr ImmGetContext(IntPtr hWnd);
13
14 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
15 public static extern bool ImmReleaseContext(IntPtr hWnd, IntPtr hImc);
16
17 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
18 public static extern IntPtr ImmCreateContext();
19
20 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
21 public static extern bool ImmDestroyContext(IntPtr hImc);
22
23 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
24 public static extern IntPtr ImmAssociateContext(IntPtr hWnd, IntPtr hImc);
25
26 [DllImport("imm32.dll", CharSet = CharSet.Unicode)]
27 public static extern int ImmGetCompositionString(IntPtr hImc, uint dwIndex, ref byte lpBuf, int dwBufLen);
28
29 [DllImport("imm32.dll", CharSet = CharSet.Unicode)]
30 public static extern bool ImmSetCompositionString(IntPtr hImc, uint dwIndex, string lpComp, int dwCompLen, string lpRead, int dwReadLen);
31
32 [DllImport("imm32.dll", CharSet = CharSet.Unicode)]
33 public static extern int ImmGetCandidateList(IntPtr hImc, uint dwIndex, ref byte lpCandList, int dwBufLen);
34
35 [DllImport("imm32.dll")]
36 public static extern IntPtr ImmGetDefaultIMEWnd(IntPtr hWnd);
37
38 [DllImport("Imm32.dll", CharSet = CharSet.Unicode)]
39 public static extern bool ImmNotifyIME(IntPtr hImc, uint dwAction, uint dwIndex, uint dwValue);
40}
static IntPtr ImmAssociateContext(IntPtr hWnd, IntPtr hImc)
static bool ImmSetOpenStatus(IntPtr hImc, bool bOpen)
static int ImmGetCandidateList(IntPtr hImc, uint dwIndex, ref byte lpCandList, int dwBufLen)
static bool ImmReleaseContext(IntPtr hWnd, IntPtr hImc)
static IntPtr ImmGetDefaultIMEWnd(IntPtr hWnd)
static bool ImmNotifyIME(IntPtr hImc, uint dwAction, uint dwIndex, uint dwValue)
static bool ImmSetCompositionString(IntPtr hImc, uint dwIndex, string lpComp, int dwCompLen, string lpRead, int dwReadLen)
static int ImmGetCompositionString(IntPtr hImc, uint dwIndex, ref byte lpBuf, int dwBufLen)