1 Star 0 Fork 0

yongzhi / w32uiautomation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
iuiautomationselectionitempattern.go 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
package w32uiautomation
import (
"syscall"
"unsafe"
"github.com/go-ole/go-ole"
)
type IUIAutomationSelectionItemPattern struct {
ole.IUnknown
}
type IUIAutomationSelectionItemPatternVtbl struct {
ole.IUnknownVtbl
Select uintptr
AddToSelection uintptr
RemoveFromSelection uintptr
Get_CurrentIsSelected uintptr
Get_CurrentSelectionContainer uintptr
Get_CachedIsSelected uintptr
Get_CachedSelectionContainer uintptr
}
var IID_IUIAutomationSelectionItemPattern = &ole.GUID{0xa8efa66a, 0x0fda, 0x421a, [8]byte{0x91, 0x94, 0x38, 0x02, 0x1f, 0x35, 0x78, 0xea}}
func (pat *IUIAutomationSelectionItemPattern) VTable() *IUIAutomationSelectionItemPatternVtbl {
return (*IUIAutomationSelectionItemPatternVtbl)(unsafe.Pointer(pat.RawVTable))
}
func (pat *IUIAutomationSelectionItemPattern) Select() error {
return select_(pat)
}
func select_(pat *IUIAutomationSelectionItemPattern) error {
hr, _, _ := syscall.Syscall(
pat.VTable().Select,
1,
uintptr(unsafe.Pointer(pat)),
0,
0)
if hr != 0 {
return ole.NewError(hr)
}
return nil
}
Go
1
https://gitee.com/yongzhi4/w32uiautomation.git
git@gitee.com:yongzhi4/w32uiautomation.git
yongzhi4
w32uiautomation
w32uiautomation
23a1f2281c99

搜索帮助