vm.go
func (v *VM) ToolsState() (GuestToolsState, error) {
	var err C.VixError = C.VIX_OK
	state := C.VIX_TOOLSSTATE_UNKNOWN

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_TOOLS_STATE,
		unsafe.Pointer(&state))

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

	return GuestToolsState(state), nil
}
func (v *VM) ToolsState() (GuestToolsState, error) {
	var err C.VixError = C.VIX_OK
	state := C.VIX_TOOLSSTATE_UNKNOWN

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_TOOLS_STATE,
		unsafe.Pointer(&state))

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

	return GuestToolsState(state), nil
}
// ToolsState returns state of the VMware Tools suite in the guest.