-
Notifications
You must be signed in to change notification settings - Fork 44
/
base.go
92 lines (74 loc) · 2.21 KB
/
base.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
package dmsoft
func (com *Dmsoft) EnablePicCache(enable int) int {
ret, _ := com.dm.CallMethod("EnablePicCache", enable)
return int(ret.Val)
}
func (com *Dmsoft) GetBasePath() string {
ret, _ := com.dm.CallMethod("GetBasePath")
return ret.ToString()
}
func (com *Dmsoft) GetDmCount() int {
ret, _ := com.dm.CallMethod("GetDmCount")
return int(ret.Val)
}
func (com *Dmsoft) GetID() int {
ret, _ := com.dm.CallMethod("GetID")
return int(ret.Val)
}
func (com *Dmsoft) GetLastError() int {
ret, _ := com.dm.CallMethod("GetLastError")
return int(ret.Val)
}
func (com *Dmsoft) GetPath() string {
ret, _ := com.dm.CallMethod("GetPath")
return ret.ToString()
}
func (com *Dmsoft) Reg(regCode string, verInfo string) int {
ret, _ := com.dm.CallMethod("Reg", regCode, verInfo)
return int(ret.Val)
}
func (com *Dmsoft) RegEx(regCode, verInfo, ip string) int {
ret, _ := com.dm.CallMethod("RegEx", regCode, verInfo, ip)
return int(ret.Val)
}
func (com *Dmsoft) RegExNoMac(regCode, verInfo, ip string) int {
ret, _ := com.dm.CallMethod("RegExNoMac", regCode, verInfo, ip)
return int(ret.Val)
}
func (com *Dmsoft) RegNoMac(regCode, verInfo, ip string) int {
ret, _ := com.dm.CallMethod("RegNoMac", regCode, verInfo, ip)
return int(ret.Val)
}
func (com *Dmsoft) SetDisplayInput(mode string) int {
ret, _ := com.dm.CallMethod("SetDisplayInput", mode)
return int(ret.Val)
}
func (com *Dmsoft) SetEnumWindowDelay(delay int) int {
ret, _ := com.dm.CallMethod("SetEnumWindowDelay", delay)
return int(ret.Val)
}
func (com *Dmsoft) SetPath(path string) int {
ret, _ := com.dm.CallMethod("SetPath", path)
return int(ret.Val)
}
func (com *Dmsoft) SetShowErrorMsg(show int) int {
ret, _ := com.dm.CallMethod("SetShowErrorMsg", show)
return int(ret.Val)
}
func (com *Dmsoft) SpeedNormalGraphic(enable int) int {
ret, _ := com.dm.CallMethod("SpeedNormalGraphic", enable)
return int(ret.Val)
}
func (com *Dmsoft) Hex32(value int) string {
ret, _ := com.dm.CallMethod("Hex32", value)
return ret.ToString()
}
func (com *Dmsoft) Hex64(value int64) string {
ret, _ := com.dm.CallMethod("Hex64", value)
return ret.ToString()
}
// Ver get version
func (com *Dmsoft) Ver() string {
ver, _ := com.dm.CallMethod("Ver")
return ver.ToString()
}