func (console *Console) GetMachine() (Machine, error) {
  var machine Machine
  result := C.GoVboxGetConsoleMachine(console.cconsole, &machine.cmachine)
  if C.GoVboxFAILED(result) != 0 || machine.cmachine == nil {
    return machine, errors.New(
        fmt.Sprintf("Failed to get IConsole machine: %x", result))
  }
  return machine, nil
}
GetMachine obtains the VM associated with this set of VM controls.
It returns a new Machine instance and any error encountered.
package vbox
import "C"   
import (
  "errors"
  "fmt"
)
type Console struct {
  cconsole *C.IConsole
}
func (console *Console) GetDisplay() (Display, error) {
  var display Display
  result := C.GoVboxGetConsoleDisplay(console.cconsole, &display.cdisplay)
  if C.GoVboxFAILED(result) != 0 || display.cdisplay == nil {
    return display, errors.New(
        fmt.Sprintf("Failed to get IConsole display: %x", result))
  }
  return display, nil
}
func (console *Console) GetKeyboard() (Keyboard, error) {
  var keyboard Keyboard
  result := C.GoVboxGetConsoleKeyboard(console.cconsole, &keyboard.ckeyboard)
  if C.GoVboxFAILED(result) != 0 || keyboard.ckeyboard == nil {
    return keyboard, errors.New(
        fmt.Sprintf("Failed to get IConsole keyboard: %x", result))
  }
  return keyboard, nil
}
func (console *Console) GetMouse() (Mouse, error) {
  var mouse Mouse
  result := C.GoVboxGetConsoleMouse(console.cconsole, &mouse.cmouse)
  if C.GoVboxFAILED(result) != 0 || mouse.cmouse == nil {
    return mouse, errors.New(
        fmt.Sprintf("Failed to get IConsole mouse: %x", result))
  }
  return mouse, nil
}