func (props *SystemProperties) GetMaxGuestCpuCount() (uint, error) {
  var cmaxCpus C.ULONG
  result := C.GoVboxGetSystemPropertiesMaxGuestCpuCount(props.cprops,
      &cmaxCpus)
  if C.GoVboxFAILED(result) != 0 {
    return 0, errors.New(
        fmt.Sprintf("Failed to get ISystemProperties max CPUs: %x", result))
  }
  return uint(cmaxCpus), nil
}
GetMaxGuestCpuCount reads the maximum number of CPUs on a guest VM.
It returns a number and any error encountered.
package vbox
import "C"   
import (
  "errors"
  "fmt"
)
type SystemProperties struct {
  cprops *C.ISystemProperties
}
func (props *SystemProperties) GetMaxGuestRam() (uint, error) {
  var cmaxRam C.ULONG
  result := C.GoVboxGetSystemPropertiesMaxGuestRAM(props.cprops, &cmaxRam)
  if C.GoVboxFAILED(result) != 0 {
    return 0, errors.New(
        fmt.Sprintf("Failed to get ISystemProperties max RAM: %x", result))
  }
  return uint(cmaxRam), nil
}
func (props *SystemProperties) GetMaxGuestVram() (uint, error) {
  var cmaxVram C.ULONG
  result := C.GoVboxGetSystemPropertiesMaxGuestVRAM(props.cprops, &cmaxVram)
  if C.GoVboxFAILED(result) != 0 {
    return 0, errors.New(
        fmt.Sprintf("Failed to get ISystemProperties max VRAM: %x", result))
  }
  return uint(cmaxVram), nil
}