// ItemAtIndex returns the result of the ItemIndex WMI call on a
// raw WMI result object
ItemAtIndex returns the result of the ItemIndex WMI call on a
raw WMI result object
// ItemAtIndex returns the result of the ItemIndex WMI call on a // raw WMI result object
func (r *Result) ItemAtIndex(i int) (*Result, error) {
	res := r.rawRes.ToIDispatch()
	if res == nil {
		return nil, fmt.Errorf("Object is not callable")
	}
	res.AddRef()
	defer res.Release()
	itemRaw, err := oleutil.CallMethod(res, "ItemIndex", i)
	if err != nil {
		return nil, errors.Wrap(err, "ItemIndex")
	}
	wmiRes := &Result{
		rawRes: itemRaw,
	}
	return wmiRes, nil
}
func ( r * Result ) ItemAtIndex ( i int ) ( * Result , error ) { res := r . rawRes . ToIDispatch ( ) if res == nil { return nil , fmt . Errorf ( " " ) } res . AddRef ( ) defer res . Release ( ) itemRaw , err := oleutil . CallMethod ( res , " " , i ) if err != nil { return nil , errors . Wrap ( err , " " ) } wmiRes := & Result { rawRes : itemRaw , } return wmiRes , nil }
ItemAtIndex returns the result of the ItemIndex WMI call on a
raw WMI result object
ItemAtIndex returns the result of the ItemIndex WMI call on a raw WMI result object