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 (_In_ HKL hKL, _In_ REGISTERWORDENUMPROCA lpfnEnumProc, _In_opt_ LPCSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCSTR lpszRegister, _Inout_opt_ LPVOID lpData) |
| |
| UINT WINAPI | ImmEnumRegisterWordW (_In_ HKL hKL, _In_ REGISTERWORDENUMPROCW lpfnEnumProc, _In_opt_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCWSTR lpszRegister, _Inout_opt_ LPVOID lpData) |
| |
| UINT WINAPI | ImmGetRegisterWordStyleA (_In_ HKL hKL, _In_ UINT nItem, _Out_writes_(nItem) LPSTYLEBUFA lpStyleBuf) |
| |
| UINT WINAPI | ImmGetRegisterWordStyleW (_In_ HKL hKL, _In_ UINT nItem, _Out_writes_(nItem) LPSTYLEBUFW lpStyleBuf) |
| |
| BOOL WINAPI | ImmRegisterWordA (_In_ HKL hKL, _In_opt_ LPCSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCSTR lpszRegister) |
| |
| BOOL WINAPI | ImmRegisterWordW (_In_ HKL hKL, _In_opt_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCWSTR lpszRegister) |
| |
| BOOL WINAPI | ImmUnregisterWordA (_In_ HKL hKL, _In_opt_ LPCSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ LPCSTR lpszUnregister) |
| |
| BOOL WINAPI | ImmUnregisterWordW (_In_ HKL hKL, _In_opt_ LPCWSTR lpszReading, _In_ DWORD dwStyle, _In_opt_ 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}
REGISTERWORDENUMPROCW lpfnEnumProc
#define ImmLocalFree(lpData)
LPWSTR Imm32WideFromAnsi(UINT uCodePage, LPCSTR pszA)
#define IS_NULL_UNEXPECTEDLY(p)
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}
REGISTERWORDENUMPROCA lpfnEnumProc
LPSTR Imm32AnsiFromWide(UINT uCodePage, LPCWSTR pszW)
Referenced by ImmEnumRegisterWordA().
◆ ImmEnumRegisterWordA()
Definition at line 95 of file regword.c.
102{
107
108 TRACE(
"(%p, %p, %s, 0x%lX, %s, %p)\n", hKL, lpfnEnumProc,
debugstr_a(lpszReading),
110
113 return 0;
114
116 {
117 ret = pImeDpi->ImeEnumRegisterWord(lpfnEnumProc, lpszReading, dwStyle,
118 lpszRegister, lpData);
121 }
122
123 if (lpszReading)
124 {
127 goto Quit;
128 }
129
130 if (lpszRegister)
131 {
134 goto Quit;
135 }
136
138 EnumDataW2A.
lpData = lpData;
142 pszRegisterW, &EnumDataW2A);
144
145Quit:
150}
PIMEDPI Imm32FindOrLoadImeDpi(HKL hKL)
VOID WINAPI ImmUnlockImeDpi(_Inout_opt_ PIMEDPI pImeDpi)
static INT CALLBACK Imm32EnumWordProcW2A(LPCWSTR pszReadingW, DWORD dwStyle, LPCWSTR pszRegisterW, LPVOID lpData)
#define ImeDpi_IsUnicode(pImeDpi)
◆ ImmEnumRegisterWordW()
Definition at line 156 of file regword.c.
163{
168
169 TRACE(
"(%p, %p, %s, 0x%lX, %s, %p)\n", hKL, lpfnEnumProc,
debugstr_w(lpszReading),
171
174 return 0;
175
177 {
178 ret = pImeDpi->ImeEnumRegisterWord(lpfnEnumProc, lpszReading, dwStyle,
179 lpszRegister, lpData);
182 }
183
184 if (lpszReading)
185 {
188 goto Quit;
189 }
190
191 if (lpszRegister)
192 {
195 goto Quit;
196 }
197
199 EnumDataA2W.
lpData = lpData;
203 pszRegisterA, &EnumDataA2W);
205
206Quit:
212}
static INT CALLBACK Imm32EnumWordProcA2W(LPCSTR pszReadingA, DWORD dwStyle, LPCSTR pszRegisterA, LPVOID lpData)
◆ ImmGetRegisterWordStyleA()
Definition at line 218 of file regword.c.
222{
227 size_t cchW;
229
230 TRACE(
"(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
231
234 return 0;
235
237 {
238 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, lpStyleBuf);
239 goto Quit;
240 }
241
242 if (nItem > 0)
243 {
246 goto Quit;
247 }
248
249 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, pNewStylesW);
250
251 if (nItem > 0)
252 {
253
254 for (iItem = 0; iItem <
ret; ++iItem)
255 {
256 pSrcW = &pNewStylesW[iItem];
257 pDestA = &lpStyleBuf[iItem];
267 }
268 }
269
270Quit:
275}
#define WideCharToMultiByte
STRSAFEAPI StringCchLengthW(STRSAFE_LPCWSTR psz, size_t cchMax, size_t *pcchLength)
LPVOID ImmLocalAlloc(_In_ DWORD dwFlags, _In_ DWORD dwBytes)
Referenced by ActiveIMMApp_GetRegisterWordStyleA().
◆ ImmGetRegisterWordStyleW()
Definition at line 281 of file regword.c.
285{
290 size_t cchA;
292
293 TRACE(
"(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
294
297 return 0;
298
300 {
301 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, lpStyleBuf);
302 goto Quit;
303 }
304
305 if (nItem > 0)
306 {
309 goto Quit;
310 }
311
312 ret = pImeDpi->ImeGetRegisterWordStyle(nItem, pNewStylesA);
313
314 if (nItem > 0)
315 {
316
317 for (iItem = 0; iItem <
ret; ++iItem)
318 {
319 pSrcA = &pNewStylesA[iItem];
320 pDestW = &lpStyleBuf[iItem];
329 }
330 }
331
332Quit:
337}
#define MultiByteToWideChar
STRSAFEAPI StringCchLengthA(STRSAFE_LPCSTR psz, size_t cchMax, size_t *pcchLength)
Referenced by ActiveIMMApp_GetRegisterWordStyleW().
◆ ImmRegisterWordA()
Definition at line 343 of file regword.c.
348{
352
354
358
360 {
361 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
364 }
365
366 if (lpszReading)
367 {
370 goto Quit;
371 }
372
373 if (lpszRegister)
374 {
377 goto Quit;
378 }
379
380 ret = pImeDpi->ImeRegisterWord(pszReadingW, dwStyle, pszRegisterW);
381
382Quit:
388}
Referenced by ActiveIMMApp_RegisterWordA().
◆ ImmRegisterWordW()
Definition at line 394 of file regword.c.
399{
403
406
410
412 {
413 ret = pImeDpi->ImeRegisterWord(lpszReading, dwStyle, lpszRegister);
416 }
417
418 if (lpszReading)
419 {
422 goto Quit;
423 }
424
425 if (lpszRegister)
426 {
429 goto Quit;
430 }
431
432 ret = pImeDpi->ImeRegisterWord(pszReadingA, dwStyle, pszRegisterA);
433
434Quit:
440}
Referenced by ActiveIMMApp_RegisterWordW().
◆ ImmUnregisterWordA()
Definition at line 446 of file regword.c.
451{
455
458
462
464 {
465 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
468 }
469
470 if (lpszReading)
471 {
474 goto Quit;
475 }
476
477 if (lpszUnregister)
478 {
481 goto Quit;
482 }
483
484 ret = pImeDpi->ImeUnregisterWord(pszReadingW, dwStyle, pszUnregisterW);
485
486Quit:
492}
Referenced by ActiveIMMApp_UnregisterWordA().
◆ ImmUnregisterWordW()
Definition at line 498 of file regword.c.
503{
507
510
514
516 {
517 ret = pImeDpi->ImeUnregisterWord(lpszReading, dwStyle, lpszUnregister);
520 }
521
522 if (lpszReading)
523 {
526 goto Quit;
527 }
528
529 if (lpszUnregister)
530 {
533 goto Quit;
534 }
535
536 ret = pImeDpi->ImeUnregisterWord(pszReadingA, dwStyle, pszUnregisterA);
537
538Quit:
544}
Referenced by ActiveIMMApp_UnregisterWordW().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
imm |
| ) |
|