This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
imm32.go
715 lines (646 loc) · 20 KB
/
imm32.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
// This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
// go run internal/cmd/gen/gen.go
// +build windows
package win
import (
"syscall"
"unsafe"
)
var (
// Library
libimm32 uintptr
// Functions
immAssociateContext uintptr
immAssociateContextEx uintptr
immConfigureIME uintptr
immCreateContext uintptr
immDestroyContext uintptr
immDisableIME uintptr
immDisableTextFrameService uintptr
immEnumInputContext uintptr
immEnumRegisterWord uintptr
immEscape uintptr
immGetCandidateListCount uintptr
immGetCandidateList uintptr
immGetCandidateWindow uintptr
immGetCompositionFont uintptr
immGetCompositionString uintptr
immGetCompositionWindow uintptr
immGetContext uintptr
immGetConversionList uintptr
immGetConversionStatus uintptr
immGetDefaultIMEWnd uintptr
immGetDescription uintptr
immGetGuideLine uintptr
immGetIMEFileName uintptr
immGetImeMenuItems uintptr
immGetOpenStatus uintptr
immGetProperty uintptr
immGetRegisterWordStyle uintptr
immGetStatusWindowPos uintptr
immGetVirtualKey uintptr
immInstallIME uintptr
immIsIME uintptr
immIsUIMessage uintptr
immNotifyIME uintptr
immRegisterWord uintptr
immReleaseContext uintptr
immSetCandidateWindow uintptr
immSetCompositionFont uintptr
immSetCompositionString uintptr
immSetCompositionWindow uintptr
immSetConversionStatus uintptr
immSetOpenStatus uintptr
immSetStatusWindowPos uintptr
immSimulateHotKey uintptr
immUnregisterWord uintptr
immCreateIMCC uintptr
immCreateSoftKeyboard uintptr
immDestroyIMCC uintptr
immDestroySoftKeyboard uintptr
immGenerateMessage uintptr
immGetHotKey uintptr
immGetIMCCLockCount uintptr
immGetIMCCSize uintptr
immGetIMCLockCount uintptr
immLockIMC uintptr
immLockIMCC uintptr
immProcessKey uintptr
immReSizeIMCC uintptr
immRequestMessage uintptr
immShowSoftKeyboard uintptr
immTranslateMessage uintptr
immUnlockIMC uintptr
immUnlockIMCC uintptr
)
func init() {
// Library
libimm32 = doLoadLibrary("imm32.dll")
// Functions
immAssociateContext = doGetProcAddress(libimm32, "ImmAssociateContext")
immAssociateContextEx = doGetProcAddress(libimm32, "ImmAssociateContextEx")
immConfigureIME = doGetProcAddress(libimm32, "ImmConfigureIMEW")
immCreateContext = doGetProcAddress(libimm32, "ImmCreateContext")
immDestroyContext = doGetProcAddress(libimm32, "ImmDestroyContext")
immDisableIME = doGetProcAddress(libimm32, "ImmDisableIME")
immDisableTextFrameService = doGetProcAddress(libimm32, "ImmDisableTextFrameService")
immEnumInputContext = doGetProcAddress(libimm32, "ImmEnumInputContext")
immEnumRegisterWord = doGetProcAddress(libimm32, "ImmEnumRegisterWordW")
immEscape = doGetProcAddress(libimm32, "ImmEscapeW")
immGetCandidateListCount = doGetProcAddress(libimm32, "ImmGetCandidateListCountW")
immGetCandidateList = doGetProcAddress(libimm32, "ImmGetCandidateListW")
immGetCandidateWindow = doGetProcAddress(libimm32, "ImmGetCandidateWindow")
immGetCompositionFont = doGetProcAddress(libimm32, "ImmGetCompositionFontW")
immGetCompositionString = doGetProcAddress(libimm32, "ImmGetCompositionStringW")
immGetCompositionWindow = doGetProcAddress(libimm32, "ImmGetCompositionWindow")
immGetContext = doGetProcAddress(libimm32, "ImmGetContext")
immGetConversionList = doGetProcAddress(libimm32, "ImmGetConversionListW")
immGetConversionStatus = doGetProcAddress(libimm32, "ImmGetConversionStatus")
immGetDefaultIMEWnd = doGetProcAddress(libimm32, "ImmGetDefaultIMEWnd")
immGetDescription = doGetProcAddress(libimm32, "ImmGetDescriptionW")
immGetGuideLine = doGetProcAddress(libimm32, "ImmGetGuideLineW")
immGetIMEFileName = doGetProcAddress(libimm32, "ImmGetIMEFileNameW")
immGetImeMenuItems = doGetProcAddress(libimm32, "ImmGetImeMenuItemsW")
immGetOpenStatus = doGetProcAddress(libimm32, "ImmGetOpenStatus")
immGetProperty = doGetProcAddress(libimm32, "ImmGetProperty")
immGetRegisterWordStyle = doGetProcAddress(libimm32, "ImmGetRegisterWordStyleW")
immGetStatusWindowPos = doGetProcAddress(libimm32, "ImmGetStatusWindowPos")
immGetVirtualKey = doGetProcAddress(libimm32, "ImmGetVirtualKey")
immInstallIME = doGetProcAddress(libimm32, "ImmInstallIMEW")
immIsIME = doGetProcAddress(libimm32, "ImmIsIME")
immIsUIMessage = doGetProcAddress(libimm32, "ImmIsUIMessageW")
immNotifyIME = doGetProcAddress(libimm32, "ImmNotifyIME")
immRegisterWord = doGetProcAddress(libimm32, "ImmRegisterWordW")
immReleaseContext = doGetProcAddress(libimm32, "ImmReleaseContext")
immSetCandidateWindow = doGetProcAddress(libimm32, "ImmSetCandidateWindow")
immSetCompositionFont = doGetProcAddress(libimm32, "ImmSetCompositionFontW")
immSetCompositionString = doGetProcAddress(libimm32, "ImmSetCompositionStringW")
immSetCompositionWindow = doGetProcAddress(libimm32, "ImmSetCompositionWindow")
immSetConversionStatus = doGetProcAddress(libimm32, "ImmSetConversionStatus")
immSetOpenStatus = doGetProcAddress(libimm32, "ImmSetOpenStatus")
immSetStatusWindowPos = doGetProcAddress(libimm32, "ImmSetStatusWindowPos")
immSimulateHotKey = doGetProcAddress(libimm32, "ImmSimulateHotKey")
immUnregisterWord = doGetProcAddress(libimm32, "ImmUnregisterWordW")
immCreateIMCC = doGetProcAddress(libimm32, "ImmCreateIMCC")
immCreateSoftKeyboard = doGetProcAddress(libimm32, "ImmCreateSoftKeyboard")
immDestroyIMCC = doGetProcAddress(libimm32, "ImmDestroyIMCC")
immDestroySoftKeyboard = doGetProcAddress(libimm32, "ImmDestroySoftKeyboard")
immGenerateMessage = doGetProcAddress(libimm32, "ImmGenerateMessage")
immGetHotKey = doGetProcAddress(libimm32, "ImmGetHotKey")
immGetIMCCLockCount = doGetProcAddress(libimm32, "ImmGetIMCCLockCount")
immGetIMCCSize = doGetProcAddress(libimm32, "ImmGetIMCCSize")
immGetIMCLockCount = doGetProcAddress(libimm32, "ImmGetIMCLockCount")
immLockIMC = doGetProcAddress(libimm32, "ImmLockIMC")
immLockIMCC = doGetProcAddress(libimm32, "ImmLockIMCC")
immProcessKey = doGetProcAddress(libimm32, "ImmProcessKey")
immReSizeIMCC = doGetProcAddress(libimm32, "ImmReSizeIMCC")
immRequestMessage = doGetProcAddress(libimm32, "ImmRequestMessageW")
immShowSoftKeyboard = doGetProcAddress(libimm32, "ImmShowSoftKeyboard")
immTranslateMessage = doGetProcAddress(libimm32, "ImmTranslateMessage")
immUnlockIMC = doGetProcAddress(libimm32, "ImmUnlockIMC")
immUnlockIMCC = doGetProcAddress(libimm32, "ImmUnlockIMCC")
}
func ImmAssociateContext(unnamed0 HWND, unnamed1 HIMC) HIMC {
ret1 := syscall3(immAssociateContext, 2,
uintptr(unnamed0),
uintptr(unnamed1),
0)
return HIMC(ret1)
}
func ImmAssociateContextEx(unnamed0 HWND, unnamed1 HIMC, unnamed2 DWORD) bool {
ret1 := syscall3(immAssociateContextEx, 3,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2))
return ret1 != 0
}
func ImmConfigureIME(unnamed0 HKL, unnamed1 HWND, unnamed2 DWORD, unnamed3 LPVOID) bool {
ret1 := syscall6(immConfigureIME, 4,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2),
uintptr(unsafe.Pointer(unnamed3)),
0,
0)
return ret1 != 0
}
func ImmCreateContext() HIMC {
ret1 := syscall3(immCreateContext, 0,
0,
0,
0)
return HIMC(ret1)
}
func ImmDestroyContext(unnamed0 HIMC) bool {
ret1 := syscall3(immDestroyContext, 1,
uintptr(unnamed0),
0,
0)
return ret1 != 0
}
func ImmDisableIME(unnamed0 DWORD) bool {
ret1 := syscall3(immDisableIME, 1,
uintptr(unnamed0),
0,
0)
return ret1 != 0
}
func ImmDisableTextFrameService(idThread DWORD) bool {
ret1 := syscall3(immDisableTextFrameService, 1,
uintptr(idThread),
0,
0)
return ret1 != 0
}
func ImmEnumInputContext(idThread DWORD, lpfn IMCENUMPROC, lParam LPARAM) bool {
lpfnCallback := syscall.NewCallback(func(unnamed0RawArg HIMC, unnamed1RawArg LPARAM) uintptr {
ret := lpfn(unnamed0RawArg, unnamed1RawArg)
return uintptr(ret)
})
ret1 := syscall3(immEnumInputContext, 3,
uintptr(idThread),
lpfnCallback,
uintptr(lParam))
return ret1 != 0
}
func ImmEnumRegisterWord(unnamed0 HKL, unnamed1 REGISTERWORDENUMPROC, lpszReading string, unnamed3 DWORD, lpszRegister string, unnamed5 LPVOID) UINT {
lpszReadingStr := unicode16FromString(lpszReading)
lpszRegisterStr := unicode16FromString(lpszRegister)
unnamed1Callback := syscall.NewCallback(func(lpszReadingRawArg /*const*/ *uint16, unnamed1RawArg DWORD, lpszStringRawArg /*const*/ *uint16, unnamed3RawArg LPVOID) uintptr {
lpszReading := stringFromUnicode16(lpszReadingRawArg)
lpszString := stringFromUnicode16(lpszStringRawArg)
ret := unnamed1(lpszReading, unnamed1RawArg, lpszString, unnamed3RawArg)
return uintptr(ret)
})
ret1 := syscall6(immEnumRegisterWord, 6,
uintptr(unnamed0),
unnamed1Callback,
uintptr(unsafe.Pointer(&lpszReadingStr[0])),
uintptr(unnamed3),
uintptr(unsafe.Pointer(&lpszRegisterStr[0])),
uintptr(unsafe.Pointer(unnamed5)))
return UINT(ret1)
}
func ImmEscape(unnamed0 HKL, unnamed1 HIMC, unnamed2 UINT, unnamed3 LPVOID) LRESULT {
ret1 := syscall6(immEscape, 4,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2),
uintptr(unsafe.Pointer(unnamed3)),
0,
0)
return LRESULT(ret1)
}
func ImmGetCandidateListCount(unnamed0 HIMC, lpdwListCount *uint32) DWORD {
ret1 := syscall3(immGetCandidateListCount, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(lpdwListCount)),
0)
return DWORD(ret1)
}
func ImmGetCandidateList(unnamed0 HIMC, deIndex DWORD, unnamed2 *CANDIDATELIST, dwBufLen DWORD) DWORD {
ret1 := syscall6(immGetCandidateList, 4,
uintptr(unnamed0),
uintptr(deIndex),
uintptr(unsafe.Pointer(unnamed2)),
uintptr(dwBufLen),
0,
0)
return DWORD(ret1)
}
func ImmGetCandidateWindow(unnamed0 HIMC, unnamed1 DWORD, unnamed2 *CANDIDATEFORM) bool {
ret1 := syscall3(immGetCandidateWindow, 3,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unsafe.Pointer(unnamed2)))
return ret1 != 0
}
func ImmGetCompositionFont(unnamed0 HIMC, unnamed1 LPLOGFONT) bool {
ret1 := syscall3(immGetCompositionFont, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmGetCompositionString(unnamed0 HIMC, unnamed1 DWORD, unnamed2 LPVOID, unnamed3 DWORD) LONG {
ret1 := syscall6(immGetCompositionString, 4,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unsafe.Pointer(unnamed2)),
uintptr(unnamed3),
0,
0)
return LONG(ret1)
}
func ImmGetCompositionWindow(unnamed0 HIMC, unnamed1 *COMPOSITIONFORM) bool {
ret1 := syscall3(immGetCompositionWindow, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmGetContext(unnamed0 HWND) HIMC {
ret1 := syscall3(immGetContext, 1,
uintptr(unnamed0),
0,
0)
return HIMC(ret1)
}
func ImmGetConversionList(unnamed0 HKL, unnamed1 HIMC, unnamed2 string, unnamed3 *CANDIDATELIST, dwBufLen DWORD, uFlag UINT) DWORD {
unnamed2Str := unicode16FromString(unnamed2)
ret1 := syscall6(immGetConversionList, 6,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unsafe.Pointer(&unnamed2Str[0])),
uintptr(unsafe.Pointer(unnamed3)),
uintptr(dwBufLen),
uintptr(uFlag))
return DWORD(ret1)
}
func ImmGetConversionStatus(unnamed0 HIMC, unnamed1 *uint32, unnamed2 *uint32) bool {
ret1 := syscall3(immGetConversionStatus, 3,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
uintptr(unsafe.Pointer(unnamed2)))
return ret1 != 0
}
func ImmGetDefaultIMEWnd(unnamed0 HWND) HWND {
ret1 := syscall3(immGetDefaultIMEWnd, 1,
uintptr(unnamed0),
0,
0)
return HWND(ret1)
}
func ImmGetDescription(unnamed0 HKL, unnamed1 LPWSTR, uBufLen UINT) UINT {
ret1 := syscall3(immGetDescription, 3,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
uintptr(uBufLen))
return UINT(ret1)
}
func ImmGetGuideLine(unnamed0 HIMC, dwIndex DWORD, unnamed2 LPWSTR, dwBufLen DWORD) DWORD {
ret1 := syscall6(immGetGuideLine, 4,
uintptr(unnamed0),
uintptr(dwIndex),
uintptr(unsafe.Pointer(unnamed2)),
uintptr(dwBufLen),
0,
0)
return DWORD(ret1)
}
func ImmGetIMEFileName(unnamed0 HKL, unnamed1 LPWSTR, uBufLen UINT) UINT {
ret1 := syscall3(immGetIMEFileName, 3,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
uintptr(uBufLen))
return UINT(ret1)
}
func ImmGetImeMenuItems(unnamed0 HIMC, unnamed1 DWORD, unnamed2 DWORD, unnamed3 LPIMEMENUITEMINFO, unnamed4 LPIMEMENUITEMINFO, unnamed5 DWORD) DWORD {
ret1 := syscall6(immGetImeMenuItems, 6,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2),
uintptr(unsafe.Pointer(unnamed3)),
uintptr(unsafe.Pointer(unnamed4)),
uintptr(unnamed5))
return DWORD(ret1)
}
func ImmGetOpenStatus(unnamed0 HIMC) bool {
ret1 := syscall3(immGetOpenStatus, 1,
uintptr(unnamed0),
0,
0)
return ret1 != 0
}
func ImmGetProperty(unnamed0 HKL, unnamed1 DWORD) DWORD {
ret1 := syscall3(immGetProperty, 2,
uintptr(unnamed0),
uintptr(unnamed1),
0)
return DWORD(ret1)
}
func ImmGetRegisterWordStyle(unnamed0 HKL, nItem UINT, unnamed2 LPSTYLEBUF) UINT {
ret1 := syscall3(immGetRegisterWordStyle, 3,
uintptr(unnamed0),
uintptr(nItem),
uintptr(unsafe.Pointer(unnamed2)))
return UINT(ret1)
}
func ImmGetStatusWindowPos(unnamed0 HIMC, unnamed1 *POINT) bool {
ret1 := syscall3(immGetStatusWindowPos, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmGetVirtualKey(unnamed0 HWND) UINT {
ret1 := syscall3(immGetVirtualKey, 1,
uintptr(unnamed0),
0,
0)
return UINT(ret1)
}
func ImmInstallIME(lpszIMEFileName string, lpszLayoutText string) HKL {
lpszIMEFileNameStr := unicode16FromString(lpszIMEFileName)
lpszLayoutTextStr := unicode16FromString(lpszLayoutText)
ret1 := syscall3(immInstallIME, 2,
uintptr(unsafe.Pointer(&lpszIMEFileNameStr[0])),
uintptr(unsafe.Pointer(&lpszLayoutTextStr[0])),
0)
return HKL(ret1)
}
func ImmIsIME(unnamed0 HKL) bool {
ret1 := syscall3(immIsIME, 1,
uintptr(unnamed0),
0,
0)
return ret1 != 0
}
func ImmIsUIMessage(unnamed0 HWND, unnamed1 UINT, unnamed2 WPARAM, unnamed3 LPARAM) bool {
ret1 := syscall6(immIsUIMessage, 4,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2),
uintptr(unnamed3),
0,
0)
return ret1 != 0
}
func ImmNotifyIME(unnamed0 HIMC, dwAction DWORD, dwIndex DWORD, dwValue DWORD) bool {
ret1 := syscall6(immNotifyIME, 4,
uintptr(unnamed0),
uintptr(dwAction),
uintptr(dwIndex),
uintptr(dwValue),
0,
0)
return ret1 != 0
}
func ImmRegisterWord(unnamed0 HKL, lpszReading string, unnamed2 DWORD, lpszRegister string) bool {
lpszReadingStr := unicode16FromString(lpszReading)
lpszRegisterStr := unicode16FromString(lpszRegister)
ret1 := syscall6(immRegisterWord, 4,
uintptr(unnamed0),
uintptr(unsafe.Pointer(&lpszReadingStr[0])),
uintptr(unnamed2),
uintptr(unsafe.Pointer(&lpszRegisterStr[0])),
0,
0)
return ret1 != 0
}
func ImmReleaseContext(unnamed0 HWND, unnamed1 HIMC) bool {
ret1 := syscall3(immReleaseContext, 2,
uintptr(unnamed0),
uintptr(unnamed1),
0)
return ret1 != 0
}
func ImmSetCandidateWindow(unnamed0 HIMC, unnamed1 *CANDIDATEFORM) bool {
ret1 := syscall3(immSetCandidateWindow, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmSetCompositionFont(unnamed0 HIMC, unnamed1 LPLOGFONT) bool {
ret1 := syscall3(immSetCompositionFont, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmSetCompositionString(unnamed0 HIMC, dwIndex DWORD, lpComp LPVOID, unnamed3 DWORD, lpRead LPVOID, unnamed5 DWORD) bool {
ret1 := syscall6(immSetCompositionString, 6,
uintptr(unnamed0),
uintptr(dwIndex),
uintptr(unsafe.Pointer(lpComp)),
uintptr(unnamed3),
uintptr(unsafe.Pointer(lpRead)),
uintptr(unnamed5))
return ret1 != 0
}
func ImmSetCompositionWindow(unnamed0 HIMC, unnamed1 *COMPOSITIONFORM) bool {
ret1 := syscall3(immSetCompositionWindow, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmSetConversionStatus(unnamed0 HIMC, unnamed1 DWORD, unnamed2 DWORD) bool {
ret1 := syscall3(immSetConversionStatus, 3,
uintptr(unnamed0),
uintptr(unnamed1),
uintptr(unnamed2))
return ret1 != 0
}
func ImmSetOpenStatus(unnamed0 HIMC, unnamed1 bool) bool {
ret1 := syscall3(immSetOpenStatus, 2,
uintptr(unnamed0),
getUintptrFromBool(unnamed1),
0)
return ret1 != 0
}
func ImmSetStatusWindowPos(unnamed0 HIMC, unnamed1 *POINT) bool {
ret1 := syscall3(immSetStatusWindowPos, 2,
uintptr(unnamed0),
uintptr(unsafe.Pointer(unnamed1)),
0)
return ret1 != 0
}
func ImmSimulateHotKey(unnamed0 HWND, unnamed1 DWORD) bool {
ret1 := syscall3(immSimulateHotKey, 2,
uintptr(unnamed0),
uintptr(unnamed1),
0)
return ret1 != 0
}
func ImmUnregisterWord(unnamed0 HKL, lpszReading string, unnamed2 DWORD, lpszUnregister string) bool {
lpszReadingStr := unicode16FromString(lpszReading)
lpszUnregisterStr := unicode16FromString(lpszUnregister)
ret1 := syscall6(immUnregisterWord, 4,
uintptr(unnamed0),
uintptr(unsafe.Pointer(&lpszReadingStr[0])),
uintptr(unnamed2),
uintptr(unsafe.Pointer(&lpszUnregisterStr[0])),
0,
0)
return ret1 != 0
}
func ImmCreateIMCC(size DWORD) HIMCC {
ret1 := syscall3(immCreateIMCC, 1,
uintptr(size),
0,
0)
return HIMCC(ret1)
}
func ImmCreateSoftKeyboard(uType UINT, hOwner UINT, x int32, y int32) HWND {
ret1 := syscall6(immCreateSoftKeyboard, 4,
uintptr(uType),
uintptr(hOwner),
uintptr(x),
uintptr(y),
0,
0)
return HWND(ret1)
}
func ImmDestroyIMCC(block HIMCC) HIMCC {
ret1 := syscall3(immDestroyIMCC, 1,
uintptr(block),
0,
0)
return HIMCC(ret1)
}
func ImmDestroySoftKeyboard(hSoftWnd HWND) bool {
ret1 := syscall3(immDestroySoftKeyboard, 1,
uintptr(hSoftWnd),
0,
0)
return ret1 != 0
}
func ImmGenerateMessage(hIMC HIMC) bool {
ret1 := syscall3(immGenerateMessage, 1,
uintptr(hIMC),
0,
0)
return ret1 != 0
}
func ImmGetHotKey(hotkey DWORD, modifiers *UINT, key *UINT, hkl HKL) bool {
ret1 := syscall6(immGetHotKey, 4,
uintptr(hotkey),
uintptr(unsafe.Pointer(modifiers)),
uintptr(unsafe.Pointer(key)),
uintptr(hkl),
0,
0)
return ret1 != 0
}
func ImmGetIMCCLockCount(imcc HIMCC) DWORD {
ret1 := syscall3(immGetIMCCLockCount, 1,
uintptr(imcc),
0,
0)
return DWORD(ret1)
}
func ImmGetIMCCSize(imcc HIMCC) DWORD {
ret1 := syscall3(immGetIMCCSize, 1,
uintptr(imcc),
0,
0)
return DWORD(ret1)
}
func ImmGetIMCLockCount(hIMC HIMC) DWORD {
ret1 := syscall3(immGetIMCLockCount, 1,
uintptr(hIMC),
0,
0)
return DWORD(ret1)
}
func ImmLockIMC(hIMC HIMC) *INPUTCONTEXT {
ret1 := syscall3(immLockIMC, 1,
uintptr(hIMC),
0,
0)
return (*INPUTCONTEXT)(unsafe.Pointer(ret1))
}
func ImmLockIMCC(imcc HIMCC) LPVOID {
ret1 := syscall3(immLockIMCC, 1,
uintptr(imcc),
0,
0)
return (LPVOID)(unsafe.Pointer(ret1))
}
func ImmProcessKey(hwnd HWND, hKL HKL, vKey UINT, lKeyData LPARAM, unknown DWORD) bool {
ret1 := syscall6(immProcessKey, 5,
uintptr(hwnd),
uintptr(hKL),
uintptr(vKey),
uintptr(lKeyData),
uintptr(unknown),
0)
return ret1 != 0
}
func ImmReSizeIMCC(imcc HIMCC, size DWORD) HIMCC {
ret1 := syscall3(immReSizeIMCC, 2,
uintptr(imcc),
uintptr(size),
0)
return HIMCC(ret1)
}
func ImmRequestMessage(hIMC HIMC, wParam WPARAM, lParam LPARAM) LRESULT {
ret1 := syscall3(immRequestMessage, 3,
uintptr(hIMC),
uintptr(wParam),
uintptr(lParam))
return LRESULT(ret1)
}
func ImmShowSoftKeyboard(hSoftWnd HWND, nCmdShow int32) bool {
ret1 := syscall3(immShowSoftKeyboard, 2,
uintptr(hSoftWnd),
uintptr(nCmdShow),
0)
return ret1 != 0
}
func ImmTranslateMessage(hwnd HWND, msg UINT, wParam WPARAM, lKeyData LPARAM) bool {
ret1 := syscall6(immTranslateMessage, 4,
uintptr(hwnd),
uintptr(msg),
uintptr(wParam),
uintptr(lKeyData),
0,
0)
return ret1 != 0
}
func ImmUnlockIMC(hIMC HIMC) bool {
ret1 := syscall3(immUnlockIMC, 1,
uintptr(hIMC),
0,
0)
return ret1 != 0
}
func ImmUnlockIMCC(imcc HIMCC) bool {
ret1 := syscall3(immUnlockIMCC, 1,
uintptr(imcc),
0,
0)
return ret1 != 0
}