示例#1
0
文件: cgo.go 项目: jmptrader/com
func AccessData(array *types.COMArray) (element uintptr, err error) {
	err = errors.MaybeError(C.SafeArrayAccessData(array, unsafe.Pointer(&element)))
	return
}
示例#2
0
// AccessData returns raw array.
//
// AKA: SafeArrayAccessData in Windows API.
func AccessData(safearray *COMArray) (element uintptr, err error) {
	err = com.MaybeError(C.SafeArrayAccessData(safearray, unsafe.Pointer(&element)))
	return
}