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.

336 lines
4.7 KiB

  1. #include "windowspch.h"
  2. #pragma hdrstop
  3. #include <immp.h>
  4. static
  5. LONG
  6. WINAPI
  7. ImmGetCompositionStringA(
  8. IN HIMC hIMC,
  9. IN DWORD dwIndex,
  10. OUT LPVOID lpBuf,
  11. IN DWORD dwBufLen)
  12. {
  13. return IMM_ERROR_GENERAL;
  14. }
  15. static
  16. LONG
  17. WINAPI
  18. ImmGetCompositionStringW(
  19. IN HIMC hIMC,
  20. IN DWORD dwIndex,
  21. OUT LPVOID lpBuf,
  22. IN DWORD dwBufLen
  23. )
  24. {
  25. return IMM_ERROR_GENERAL;
  26. }
  27. static
  28. HIMC
  29. WINAPI
  30. ImmGetContext(
  31. IN HWND hWnd
  32. )
  33. {
  34. return NULL;
  35. }
  36. static
  37. BOOL
  38. WINAPI
  39. ImmReleaseContext(
  40. IN HWND hWnd,
  41. IN HIMC hIMC
  42. )
  43. {
  44. return FALSE;
  45. }
  46. static
  47. UINT
  48. WINAPI
  49. ImmGetVirtualKey(
  50. IN HWND hWnd
  51. )
  52. {
  53. return VK_PROCESSKEY;
  54. }
  55. static
  56. HWND
  57. WINAPI
  58. ImmGetDefaultIMEWnd(
  59. IN HWND hWnd
  60. )
  61. {
  62. return NULL;
  63. }
  64. static
  65. BOOL
  66. WINAPI
  67. ImmEnumInputContext(
  68. IN DWORD idThread,
  69. IN IMCENUMPROC lpfn,
  70. LPARAM lParam)
  71. {
  72. return FALSE;
  73. }
  74. static
  75. BOOL
  76. WINAPI
  77. ImmSetCandidateWindow(
  78. IN HIMC hIMC,
  79. IN LPCANDIDATEFORM lpCandidate)
  80. {
  81. return FALSE;
  82. }
  83. static
  84. LRESULT
  85. WINAPI
  86. ImmEscapeA(
  87. IN HKL hKL,
  88. IN HIMC hIMC,
  89. IN UINT uEscape,
  90. IN LPVOID lpData)
  91. {
  92. return 0;
  93. }
  94. static
  95. LRESULT
  96. WINAPI
  97. ImmEscapeW(
  98. IN HKL hKL,
  99. IN HIMC hIMC,
  100. IN UINT uEscape,
  101. IN LPVOID lpData)
  102. {
  103. return 0;
  104. }
  105. static
  106. BOOL
  107. WINAPI
  108. ImmSetCompositionFontW(
  109. IN HIMC hIMC,
  110. IN LPLOGFONT lplf)
  111. {
  112. return FALSE;
  113. }
  114. static
  115. BOOL
  116. WINAPI
  117. ImmGetCompositionWindow(
  118. IN HIMC hIMC,
  119. OUT LPCOMPOSITIONFORM lpCompForm)
  120. {
  121. return FALSE;
  122. }
  123. static
  124. BOOL
  125. WINAPI
  126. ImmSetCompositionWindow(
  127. IN HIMC hIMC,
  128. IN LPCOMPOSITIONFORM lpCompForm)
  129. {
  130. return FALSE;
  131. }
  132. static
  133. HIMC
  134. WINAPI
  135. ImmAssociateContext(
  136. IN HWND hWnd,
  137. IN HIMC hIMC)
  138. {
  139. return NULL;
  140. }
  141. static
  142. BOOL
  143. WINAPI
  144. ImmNotifyIME(
  145. IN HIMC hIMC,
  146. IN DWORD dwAction,
  147. IN DWORD dwIndex,
  148. IN DWORD dwValue)
  149. {
  150. return FALSE;
  151. }
  152. static
  153. LPINPUTCONTEXT
  154. WINAPI
  155. ImmLockIMC(
  156. IN HIMC hIMC)
  157. {
  158. return NULL;
  159. }
  160. static
  161. BOOL
  162. WINAPI
  163. ImmUnlockIMC(
  164. IN HIMC hIMC)
  165. {
  166. return FALSE;
  167. }
  168. static
  169. DWORD
  170. WINAPI
  171. ImmGetGuideLineW(
  172. IN HIMC hIMC,
  173. IN DWORD dwIndex,
  174. OUT LPWSTR lpBuf,
  175. IN DWORD dwBufLen)
  176. {
  177. return GL_LEVEL_ERROR;
  178. }
  179. static
  180. BOOL
  181. WINAPI
  182. ImmSetCompositionStringA(
  183. IN HIMC hIMC,
  184. IN DWORD dwIndex,
  185. IN LPVOID lpComp,
  186. IN DWORD dwCompLen,
  187. IN LPVOID lpRead,
  188. IN DWORD dwReadLen)
  189. {
  190. return FALSE;
  191. }
  192. static
  193. BOOL
  194. WINAPI
  195. ImmSetCompositionStringW(
  196. IN HIMC hIMC,
  197. IN DWORD dwIndex,
  198. IN LPVOID lpComp,
  199. IN DWORD dwCompLen,
  200. IN LPVOID lpRead,
  201. IN DWORD dwReadLen)
  202. {
  203. return FALSE;
  204. }
  205. static
  206. BOOL
  207. WINAPI
  208. ImmSetOpenStatus(
  209. IN HIMC hIMC,
  210. IN BOOL fOpen)
  211. {
  212. return FALSE;
  213. }
  214. static
  215. BOOL
  216. WINAPI
  217. ImmSetConversionStatus(
  218. IN HIMC hIMC,
  219. IN DWORD fdwConversion,
  220. IN DWORD fdwSentence)
  221. {
  222. return FALSE;
  223. }
  224. static
  225. BOOL
  226. WINAPI
  227. ImmIsIME(
  228. IN HKL hKL)
  229. {
  230. return FALSE;
  231. }
  232. static
  233. BOOL
  234. WINAPI
  235. ImmGetOpenStatus(
  236. IN HIMC hIMC)
  237. {
  238. return FALSE;
  239. }
  240. static
  241. BOOL
  242. WINAPI
  243. ImmGetConversionStatus(
  244. IN HIMC hIMC,
  245. OUT LPDWORD lpfdwConversion,
  246. OUT LPDWORD lpfdwSentence)
  247. {
  248. return FALSE;
  249. }
  250. static
  251. DWORD
  252. WINAPI
  253. ImmGetProperty(
  254. IN HKL hKL,
  255. IN DWORD fdwIndex)
  256. {
  257. return 0;
  258. }
  259. static
  260. BOOL
  261. WINAPI
  262. ImmGetCandidateWindow(
  263. IN HIMC hIMC,
  264. IN DWORD dw,
  265. OUT LPCANDIDATEFORM lpcf
  266. )
  267. {
  268. return FALSE;
  269. }
  270. //
  271. // !! WARNING !! The entries below must be in alphabetical order,
  272. // and are CASE SENSITIVE (eg lower case comes last!)
  273. //
  274. DEFINE_PROCNAME_ENTRIES(imm32)
  275. {
  276. DLPENTRY(ImmAssociateContext)
  277. DLPENTRY(ImmEnumInputContext)
  278. DLPENTRY(ImmEscapeA)
  279. DLPENTRY(ImmEscapeW)
  280. DLPENTRY(ImmGetCandidateWindow)
  281. DLPENTRY(ImmGetCompositionStringA)
  282. DLPENTRY(ImmGetCompositionStringW)
  283. DLPENTRY(ImmGetCompositionWindow)
  284. DLPENTRY(ImmGetContext)
  285. DLPENTRY(ImmGetConversionStatus)
  286. DLPENTRY(ImmGetDefaultIMEWnd)
  287. DLPENTRY(ImmGetGuideLineW)
  288. DLPENTRY(ImmGetOpenStatus)
  289. DLPENTRY(ImmGetProperty)
  290. DLPENTRY(ImmGetVirtualKey)
  291. DLPENTRY(ImmIsIME)
  292. DLPENTRY(ImmLockIMC)
  293. DLPENTRY(ImmNotifyIME)
  294. DLPENTRY(ImmReleaseContext)
  295. DLPENTRY(ImmSetCandidateWindow)
  296. DLPENTRY(ImmSetCompositionFontW)
  297. DLPENTRY(ImmSetCompositionStringA)
  298. DLPENTRY(ImmSetCompositionStringW)
  299. DLPENTRY(ImmSetCompositionWindow)
  300. DLPENTRY(ImmSetConversionStatus)
  301. DLPENTRY(ImmSetOpenStatus)
  302. DLPENTRY(ImmUnlockIMC)
  303. };
  304. DEFINE_PROCNAME_MAP(imm32)