// Get will execute a method on the WMI object held in *Result, with the given params
Get will execute a method on the WMI object held in *Result, with the given params
// Get will execute a method on the WMI object held in * Result with the given params
func (r *Result) Get(method string, params ...interface{}) (*Result, error) {
	res := r.rawRes.ToIDispatch()
	if res == nil {
		return nil, fmt.Errorf("Object is not callable")
	}
	res.AddRef()
	defer res.Release()
	rawSvc, err := oleutil.CallMethod(res, method, params...)
	if err != nil {
		return nil, err
	}
	wmiRes := &Result{
		rawRes: rawSvc,
	}
	return wmiRes, nil
}
func ( r * Result ) Get ( method string , params ... interface { } ) ( * Result , error ) { res := r . rawRes . ToIDispatch ( ) if res == nil { return nil , fmt . Errorf ( " " ) } res . AddRef ( ) defer res . Release ( ) rawSvc , err := oleutil . CallMethod ( res , method , params ... ) if err != nil { return nil , err } wmiRes := & Result { rawRes : rawSvc , } return wmiRes , nil }
Get will execute a method on the WMI object held in *Result, with the given params
Get will execute a method on the WMI object held in * Result with the given params