func GetElementDirect(array *types.COMArray, index int64, element interface{}) error { return errors.MaybeError(C.SafeArrayGetElement(array, index, unsafe.Pointer(&element))) }
// GetElementDirect retrieves element value at given index. // // AKA: SafeArrayGetElement in Windows API. func GetElementDirect(safearray *COMArray, index int64, element interface{}) error { return com.MaybeError(C.SafeArrayGetElement(safearray, index, unsafe.Pointer(&element))) }