-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathother.go
42 lines (34 loc) · 1.08 KB
/
other.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
package gdm
import "github.com/rogeecn/gdm/utils"
func (com *DmSoft) ActiveInputMethod(hwnd int, inputMethod string) bool {
ret, _ := com.dm.CallMethod("ActiveInputMethod", hwnd, inputMethod)
return utils.IsOK(ret.Val)
}
func (com *DmSoft) CheckInputMethod(hwnd int, inputMethod string) bool {
ret, _ := com.dm.CallMethod("CheckInputMethod", hwnd, inputMethod)
return utils.IsOK(ret.Val)
}
func (com *DmSoft) FindInputMethod(inputMethod string) bool {
ret, _ := com.dm.CallMethod("FindInputMethod", inputMethod)
return utils.IsOK(ret.Val)
}
func (com *DmSoft) EnterCri() bool {
ret, _ := com.dm.CallMethod("EnterCri")
return utils.IsOK(ret.Val)
}
func (com *DmSoft) InitCri() bool {
ret, _ := com.dm.CallMethod("InitCri")
return utils.IsOK(ret.Val)
}
func (com *DmSoft) LeaveCri() bool {
ret, _ := com.dm.CallMethod("LeaveCri")
return utils.IsOK(ret.Val)
}
func (com *DmSoft) ReleaseRef() bool {
ret, _ := com.dm.CallMethod("ReleaseRef")
return utils.IsOK(ret.Val)
}
func (com *DmSoft) SetExitThread() bool {
ret, _ := com.dm.CallMethod("SetExitThread", 1)
return utils.IsOK(ret.Val)
}