1 Star 0 Fork 0

yongzhi / w32uiautomation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
iuiautomationinvokepattern.go 807 Bytes
一键复制 编辑 原始数据 按行查看 历史
package w32uiautomation
import (
"syscall"
"unsafe"
"github.com/go-ole/go-ole"
)
type IUIAutomationInvokePattern struct {
ole.IUnknown
}
type IUIAutomationInvokePatternVtbl struct {
ole.IUnknownVtbl
Invoke uintptr
}
var IID_IUIAutomationInvokePattern = &ole.GUID{0xfb377fbe, 0x8ea6, 0x46d5, [8]byte{0x9c, 0x73, 0x64, 0x99, 0x64, 0x2d, 0x30, 0x59}}
func (pat *IUIAutomationInvokePattern) VTable() *IUIAutomationInvokePatternVtbl {
return (*IUIAutomationInvokePatternVtbl)(unsafe.Pointer(pat.RawVTable))
}
func (pat *IUIAutomationInvokePattern) Invoke() error {
return invoke(pat)
}
func invoke(pat *IUIAutomationInvokePattern) error {
hr, _, _ := syscall.Syscall(
pat.VTable().Invoke,
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

搜索帮助