1 Star 0 Fork 0

yongzhi / w32uiautomation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
variant_amd64.go 526 Bytes
一键复制 编辑 原始数据 按行查看 历史
// +build amd64
package w32uiautomation
import "github.com/go-ole/go-ole"
// type VARIANT struct {
// VT uint16 // 2
// wReserved1 uint16 // 4
// wReserved2 uint16 // 6
// wReserved3 uint16 // 8
// Val int64 // 16
// _ [8]byte // 24
// }
func VariantToUintptrArray(v ole.VARIANT) []uintptr {
// Size of uintptr on 64bit system is 8
return []uintptr{
uintptr(v.VT<<48), // uintptr(v.VT<<48 | v.wReserved1<<32 | v.wReserved2<<16 | wReserved3),
uintptr(v.Val),
uintptr(0),
}
}
Go
1
https://gitee.com/yongzhi4/w32uiautomation.git
git@gitee.com:yongzhi4/w32uiautomation.git
yongzhi4
w32uiautomation
w32uiautomation
23a1f2281c99

搜索帮助