1 Star 4 Fork 0

auuu_nya/go-element

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client.go 775 Bytes
一键复制 编辑 原始数据 按行查看 历史
auuu_nya 提交于 2024-06-13 12:03 . init go-element
package uiautomation
import (
"syscall"
"unsafe"
)
type IUIAutomationValuePattern struct {
vtbl *IUnKnown
}
type IUIAutomationValuePatternVtbl struct {
*IUnKnownVtbl
Get_CachedIsReadOnly uintptr
Get_CachedValue uintptr
Get_CurrentIsReadOnly uintptr
Get_CurrentValue uintptr
SetValue uintptr
}
// TODO:: clent IUIAutomationValuePattern method
func PatternSetValue(pointer unsafe.Pointer, in string) error {
v := (*IUIAutomationValuePattern)(unsafe.Pointer(pointer))
retVal, err := string2Bstr(in)
if err != nil {
return err
}
ret, _, _ := syscall.SyscallN(
(*IUIAutomationValuePatternVtbl)(unsafe.Pointer(v.vtbl)).SetValue,
uintptr(unsafe.Pointer(v)),
uintptr(retVal),
)
if ret != 0 {
return HResult(ret)
}
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/auuunya/go-element.git
[email protected]:auuunya/go-element.git
auuunya
go-element
go-element
main

搜索帮助