vm.go
func (v *VM) ReadOnly() (bool, error) {
	var err C.VixError = C.VIX_OK
	readonly := C.VIX_PROPERTY_NONE

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_READ_ONLY,
		unsafe.Pointer(&readonly))

	if C.VIX_OK != err {
		return false, &Error{
			Operation: "vm.ReadOnly",
			Code:      int(err & 0xFFFF),
			Text:      C.GoString(C.Vix_GetErrorText(err, nil)),
		}
	}

	if readonly == 0 {
		return false, nil
	}

	return true, nil
}
func (v *VM) ReadOnly() (bool, error) {
	var err C.VixError = C.VIX_OK
	readonly := C.VIX_PROPERTY_NONE

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_READ_ONLY,
		unsafe.Pointer(&readonly))

	if C.VIX_OK != err {
		return false, &Error{
			Operation: "vm.ReadOnly",
			Code:      int(err & 0xFFFF),
			Text:      C.GoString(C.Vix_GetErrorText(err, nil)),
		}
	}

	if readonly == 0 {
		return false, nil
	}

	return true, nil
}
// ReadOnly tells whether or not the VM is read-only.