Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
4.4 KiB

  1. #include <windows.h>
  2. #include <immdev.h>
  3. #include "imeattr.h"
  4. #include "imedefs.h"
  5. #include "uniime.h"
  6. LRESULT CALLBACK UIWndProc(
  7. HWND hWnd,
  8. UINT uMsg,
  9. WPARAM wParam,
  10. LPARAM lParam)
  11. {
  12. return UniUIWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  13. }
  14. LRESULT CALLBACK CompWndProc(
  15. HWND hWnd,
  16. UINT uMsg,
  17. WPARAM wParam,
  18. LPARAM lParam)
  19. {
  20. return UniCompWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  21. }
  22. LRESULT CALLBACK CandWndProc(
  23. HWND hWnd,
  24. UINT uMsg,
  25. WPARAM wParam,
  26. LPARAM lParam)
  27. {
  28. return UniCandWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  29. }
  30. LRESULT CALLBACK StatusWndProc(
  31. HWND hWnd,
  32. UINT uMsg,
  33. WPARAM wParam,
  34. LPARAM lParam)
  35. {
  36. return UniStatusWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  37. }
  38. LRESULT CALLBACK OffCaretWndProc(
  39. HWND hWnd,
  40. UINT uMsg,
  41. WPARAM wParam,
  42. LPARAM lParam)
  43. {
  44. return UniOffCaretWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  45. }
  46. LRESULT CALLBACK ContextMenuWndProc(
  47. HWND hWnd,
  48. UINT uMsg,
  49. WPARAM wParam,
  50. LPARAM lParam)
  51. {
  52. return UniContextMenuWndProc(lpInstL, lpImeL, hWnd, uMsg, wParam, lParam);
  53. }
  54. BOOL WINAPI ImeInquire(
  55. LPIMEINFO lpImeInfo,
  56. LPTSTR lpszWndCls,
  57. DWORD dwSystemInfoFlags)
  58. {
  59. lpImeInfo->dwPrivateDataSize = 0;
  60. return UniImeInquire(lpInstL, lpImeL, lpImeInfo, lpszWndCls, dwSystemInfoFlags);
  61. }
  62. BOOL WINAPI ImeConfigure(
  63. HKL hKL,
  64. HWND hAppWnd,
  65. DWORD dwMode,
  66. LPVOID lpData)
  67. {
  68. return UniImeConfigure(lpInstL, lpImeL, hKL, hAppWnd, dwMode, lpData);
  69. }
  70. DWORD WINAPI ImeConversionList(
  71. HIMC hIMC,
  72. LPCTSTR lpszSrc,
  73. LPCANDIDATELIST lpCandList,
  74. DWORD dwBufLen,
  75. UINT uFlag)
  76. {
  77. return UniImeConversionList(lpInstL, lpImeL, hIMC, lpszSrc, lpCandList,
  78. dwBufLen, uFlag);
  79. }
  80. BOOL WINAPI ImeDestroy(
  81. UINT uReserved)
  82. {
  83. return UniImeDestroy(lpInstL, lpImeL, uReserved);
  84. }
  85. LRESULT WINAPI ImeEscape(
  86. HIMC hIMC,
  87. UINT uSubFunc,
  88. LPVOID lpData)
  89. {
  90. return UniImeEscape(lpInstL, lpImeL, hIMC, uSubFunc, lpData);
  91. }
  92. BOOL WINAPI ImeProcessKey(
  93. HIMC hIMC,
  94. UINT uVirtKey,
  95. LPARAM lParam,
  96. CONST LPBYTE lpbKeyState)
  97. {
  98. return UniImeProcessKey(lpInstL, lpImeL, hIMC, uVirtKey, lParam,
  99. lpbKeyState);
  100. }
  101. BOOL WINAPI ImeSelect(
  102. HIMC hIMC,
  103. BOOL fSelect)
  104. {
  105. return UniImeSelect(lpInstL, lpImeL, hIMC, fSelect);
  106. }
  107. BOOL WINAPI ImeSetActiveContext(
  108. HIMC hIMC,
  109. BOOL fOn)
  110. {
  111. return UniImeSetActiveContext(lpInstL, lpImeL, hIMC, fOn);
  112. }
  113. UINT WINAPI ImeToAsciiEx(
  114. UINT uVirtKey,
  115. UINT uScanCode,
  116. CONST LPBYTE lpbKeyState,
  117. LPTRANSMSGLIST lpTransBuf,
  118. UINT fuState,
  119. HIMC hIMC)
  120. {
  121. return UniImeToAsciiEx(lpInstL, lpImeL, uVirtKey, uScanCode,
  122. lpbKeyState, lpTransBuf, fuState, hIMC);
  123. }
  124. BOOL WINAPI NotifyIME(
  125. HIMC hIMC,
  126. DWORD dwAction,
  127. DWORD dwIndex,
  128. DWORD dwValue)
  129. {
  130. return UniNotifyIME(lpInstL, lpImeL, hIMC, dwAction, dwIndex, dwValue);
  131. }
  132. BOOL WINAPI ImeRegisterWord(
  133. LPCTSTR lpszReading,
  134. DWORD dwStyle,
  135. LPCTSTR lpszString)
  136. {
  137. return UniImeRegisterWord(lpInstL, lpImeL, lpszReading, dwStyle,
  138. lpszString);
  139. }
  140. BOOL WINAPI ImeUnregisterWord(
  141. LPCTSTR lpszReading,
  142. DWORD dwStyle,
  143. LPCTSTR lpszString)
  144. {
  145. return UniImeUnregisterWord(lpInstL, lpImeL, lpszReading, dwStyle,
  146. lpszString);
  147. }
  148. UINT WINAPI ImeGetRegisterWordStyle(
  149. UINT nItem,
  150. LPSTYLEBUF lpStyleBuf)
  151. {
  152. return UniImeGetRegisterWordStyle(lpInstL, lpImeL, nItem, lpStyleBuf);
  153. }
  154. UINT WINAPI ImeEnumRegisterWord(
  155. REGISTERWORDENUMPROC lpfnRegisterWordEnumProc,
  156. LPCTSTR lpszReading,
  157. DWORD dwStyle,
  158. LPCTSTR lpszString,
  159. LPVOID lpData)
  160. {
  161. return UniImeEnumRegisterWord(lpInstL, lpImeL, lpfnRegisterWordEnumProc,
  162. lpszReading, dwStyle, lpszString, lpData);
  163. }
  164. BOOL WINAPI ImeSetCompositionString(
  165. HIMC hIMC,
  166. DWORD dwIndex,
  167. LPCVOID lpComp,
  168. DWORD dwCompLen,
  169. LPCVOID lpRead,
  170. DWORD dwReadLen)
  171. {
  172. return UniImeSetCompositionString(lpInstL, lpImeL, hIMC, dwIndex, lpComp,
  173. dwCompLen, lpRead, dwReadLen);
  174. }