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 IS_NULL_UNEXPECTEDLY(p)
#define ImmLocalFree(lpData)
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, lpszReading,
105 dwStyle, lpszRegister, lpData);
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, lpszReading,
162 dwStyle, lpszRegister, lpData);
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
333 TRACE(
"(%p, %s, 0x%lX, %s)\n", hKL, lpszReading, dwStyle, lpszRegister);
334
338
340 {
341 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
344 }
345
346 if (lpszReading)
347 {
350 goto Quit;
351 }
352
353 if (lpszRegister)
354 {
357 goto Quit;
358 }
359
360 ret = pImeDpi->ImeRegisterWord(pszReadingW, dwStyle, pszRegisterW);
361
362Quit:
368}
Referenced by ActiveIMMApp_RegisterWordA().
◆ ImmRegisterWordW()
Definition at line 374 of file regword.c.
375{
379
380 TRACE(
"(%p, %S, 0x%lX, %S)\n", hKL, lpszReading, dwStyle, lpszRegister);
381
385
387 {
388 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
391 }
392
393 if (lpszReading)
394 {
397 goto Quit;
398 }
399
400 if (lpszRegister)
401 {
404 goto Quit;
405 }
406
407 ret = pImeDpi->ImeRegisterWord(pszReadingA, dwStyle, pszRegisterA);
408
409Quit:
415}
Referenced by ActiveIMMApp_RegisterWordW().
◆ ImmUnregisterWordA()
Definition at line 421 of file regword.c.
422{
426
427 TRACE(
"(%p, %s, 0x%lX, %s)\n", hKL, lpszReading, dwStyle, lpszUnregister);
428
432
434 {
435 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
438 }
439
440 if (lpszReading)
441 {
444 goto Quit;
445 }
446
447 if (lpszUnregister)
448 {
451 goto Quit;
452 }
453
454 ret = pImeDpi->ImeUnregisterWord(pszReadingW, dwStyle, pszUnregisterW);
455
456Quit:
462}
Referenced by ActiveIMMApp_UnregisterWordA().
◆ ImmUnregisterWordW()
Definition at line 468 of file regword.c.
469{
473
474 TRACE(
"(%p, %S, 0x%lX, %S)\n", hKL, lpszReading, dwStyle, lpszUnregister);
475
479
481 {
482 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
485 }
486
487 if (lpszReading)
488 {
491 goto Quit;
492 }
493
494 if (lpszUnregister)
495 {
498 goto Quit;
499 }
500
501 ret = pImeDpi->ImeUnregisterWord(pszReadingA, dwStyle, pszUnregisterA);
502
503Quit:
509}
Referenced by ActiveIMMApp_UnregisterWordW().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
imm |
| ) |
|