Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (imm) |
|
static INT CALLBACK | Imm32EnumWordProcA2W (LPCSTR pszReadingA, DWORD dwStyle, LPCSTR pszRegisterA, LPVOID lpData) |
|
static INT CALLBACK | Imm32EnumWordProcW2A (LPCWSTR pszReadingW, DWORD dwStyle, LPCWSTR pszRegisterW, LPVOID lpData) |
|
UINT WINAPI | ImmEnumRegisterWordA (HKL hKL, REGISTERWORDENUMPROCA lpfnEnumProc, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister, LPVOID lpData) |
|
UINT WINAPI | ImmEnumRegisterWordW (HKL hKL, REGISTERWORDENUMPROCW lpfnEnumProc, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister, LPVOID lpData) |
|
UINT WINAPI | ImmGetRegisterWordStyleA (HKL hKL, UINT nItem, LPSTYLEBUFA lpStyleBuf) |
|
UINT WINAPI | ImmGetRegisterWordStyleW (HKL hKL, UINT nItem, LPSTYLEBUFW lpStyleBuf) |
|
BOOL WINAPI | ImmRegisterWordA (HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszRegister) |
|
BOOL WINAPI | ImmRegisterWordW (HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszRegister) |
|
BOOL WINAPI | ImmUnregisterWordA (HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR lpszUnregister) |
|
BOOL WINAPI | ImmUnregisterWordW (HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR lpszUnregister) |
|
◆ ENUM_WORD_A2W
◆ ENUM_WORD_W2A
◆ LPENUM_WORD_A2W
◆ LPENUM_WORD_W2A
◆ Imm32EnumWordProcA2W()
Definition at line 32 of file regword.c.
33{
37
38 if (pszReadingA)
39 {
42 goto Quit;
43 }
44
45 if (pszRegisterA)
46 {
49 goto Quit;
50 }
51
54
55Quit:
59}
#define ImmLocalFree(lpData)
#define IS_NULL_UNEXPECTEDLY(p)
LPWSTR APIENTRY Imm32WideFromAnsi(UINT uCodePage, LPCSTR pszA)
REGISTERWORDENUMPROCW lpfnEnumProc
Referenced by ImmEnumRegisterWordW().
◆ Imm32EnumWordProcW2A()
Definition at line 62 of file regword.c.
63{
67
68 if (pszReadingW)
69 {
72 goto Quit;
73 }
74
75 if (pszRegisterW)
76 {
79 goto Quit;
80 }
81
84
85Quit:
89}
LPSTR APIENTRY Imm32AnsiFromWide(UINT uCodePage, LPCWSTR pszW)
REGISTERWORDENUMPROCA lpfnEnumProc
Referenced by ImmEnumRegisterWordA().
◆ ImmEnumRegisterWordA()
Definition at line 95 of file regword.c.
98{
103
104 TRACE(
"(%p, %p, %s, 0x%lX, %s, %p)\n", hKL, lpfnEnumProc,
debugstr_a(lpszReading),
106
109 return 0;
110
112 {
113 ret = pImeDpi->ImeEnumRegisterWord(lpfnEnumProc, lpszReading, dwStyle,
114 lpszRegister, lpData);
117 }
118
119 if (lpszReading)
120 {
123 goto Quit;
124 }
125
126 if (lpszRegister)
127 {
130 goto Quit;
131 }
132
134 EnumDataW2A.
lpData = lpData;
138 pszRegisterW, &EnumDataW2A);
140
141Quit:
146}
VOID WINAPI ImmUnlockImeDpi(PIMEDPI pImeDpi)
PIMEDPI APIENTRY Imm32FindOrLoadImeDpi(HKL hKL)
#define ImeDpi_IsUnicode(pImeDpi)
static INT CALLBACK Imm32EnumWordProcW2A(LPCWSTR pszReadingW, DWORD dwStyle, LPCWSTR pszRegisterW, LPVOID lpData)
◆ ImmEnumRegisterWordW()
Definition at line 152 of file regword.c.
155{
160
161 TRACE(
"(%p, %p, %s, 0x%lX, %s, %p)\n", hKL, lpfnEnumProc,
debugstr_w(lpszReading),
163
166 return 0;
167
169 {
170 ret = pImeDpi->ImeEnumRegisterWord(lpfnEnumProc, lpszReading, dwStyle,
171 lpszRegister, lpData);
174 }
175
176 if (lpszReading)
177 {
180 goto Quit;
181 }
182
183 if (lpszRegister)
184 {
187 goto Quit;
188 }
189
191 EnumDataA2W.
lpData = lpData;
195 pszRegisterA, &EnumDataA2W);
197
198Quit:
204}
static INT CALLBACK Imm32EnumWordProcA2W(LPCSTR pszReadingA, DWORD dwStyle, LPCSTR pszRegisterA, LPVOID lpData)
◆ ImmGetRegisterWordStyleA()
Definition at line 209 of file regword.c.
210{
215 size_t cchW;
217
218 TRACE(
"(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
219
222 return 0;
223
225 {
226 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, lpStyleBuf);
227 goto Quit;
228 }
229
230 if (nItem > 0)
231 {
234 goto Quit;
235 }
236
237 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, pNewStylesW);
238
239 if (nItem > 0)
240 {
241
242 for (iItem = 0; iItem <
ret; ++iItem)
243 {
244 pSrcW = &pNewStylesW[iItem];
245 pDestA = &lpStyleBuf[iItem];
255 }
256 }
257
258Quit:
263}
#define WideCharToMultiByte
LPVOID APIENTRY ImmLocalAlloc(DWORD dwFlags, DWORD dwBytes)
STRSAFEAPI StringCchLengthW(STRSAFE_LPCWSTR psz, size_t cchMax, size_t *pcchLength)
Referenced by ActiveIMMApp_GetRegisterWordStyleA().
◆ ImmGetRegisterWordStyleW()
Definition at line 268 of file regword.c.
269{
274 size_t cchA;
276
277 TRACE(
"(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
278
281 return 0;
282
284 {
285 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, lpStyleBuf);
286 goto Quit;
287 }
288
289 if (nItem > 0)
290 {
293 goto Quit;
294 }
295
296 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, pNewStylesA);
297
298 if (nItem > 0)
299 {
300
301 for (iItem = 0; iItem <
ret; ++iItem)
302 {
303 pSrcA = &pNewStylesA[iItem];
304 pDestW = &lpStyleBuf[iItem];
313 }
314 }
315
316Quit:
321}
#define MultiByteToWideChar
STRSAFEAPI StringCchLengthA(STRSAFE_LPCSTR psz, size_t cchMax, size_t *pcchLength)
Referenced by ActiveIMMApp_GetRegisterWordStyleW().
◆ ImmRegisterWordA()
Definition at line 327 of file regword.c.
328{
332
335
339
341 {
342 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
345 }
346
347 if (lpszReading)
348 {
351 goto Quit;
352 }
353
354 if (lpszRegister)
355 {
358 goto Quit;
359 }
360
361 ret = pImeDpi->ImeRegisterWord(pszReadingW, dwStyle, pszRegisterW);
362
363Quit:
369}
Referenced by ActiveIMMApp_RegisterWordA().
◆ ImmRegisterWordW()
Definition at line 375 of file regword.c.
376{
380
383
387
389 {
390 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
393 }
394
395 if (lpszReading)
396 {
399 goto Quit;
400 }
401
402 if (lpszRegister)
403 {
406 goto Quit;
407 }
408
409 ret = pImeDpi->ImeRegisterWord(pszReadingA, dwStyle, pszRegisterA);
410
411Quit:
417}
Referenced by ActiveIMMApp_RegisterWordW().
◆ ImmUnregisterWordA()
Definition at line 423 of file regword.c.
424{
428
431
435
437 {
438 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
441 }
442
443 if (lpszReading)
444 {
447 goto Quit;
448 }
449
450 if (lpszUnregister)
451 {
454 goto Quit;
455 }
456
457 ret = pImeDpi->ImeUnregisterWord(pszReadingW, dwStyle, pszUnregisterW);
458
459Quit:
465}
Referenced by ActiveIMMApp_UnregisterWordA().
◆ ImmUnregisterWordW()
Definition at line 471 of file regword.c.
472{
476
479
483
485 {
486 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
489 }
490
491 if (lpszReading)
492 {
495 goto Quit;
496 }
497
498 if (lpszUnregister)
499 {
502 goto Quit;
503 }
504
505 ret = pImeDpi->ImeUnregisterWord(pszReadingA, dwStyle, pszUnregisterA);
506
507Quit:
513}
Referenced by ActiveIMMApp_UnregisterWordW().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
imm |
| ) |
|