vm.go
func (v *VM) EnableSharedFolders(enabled bool) error {
	var jobHandle C.VixHandle = C.VIX_INVALID_HANDLE
	var err C.VixError = C.VIX_OK

	var share C.Bool = C.FALSE
	if enabled {
		share = C.TRUE
	}

	jobHandle = C.VixVM_EnableSharedFolders(v.handle,
		share,
		0,
		nil,
		nil)

	defer C.Vix_ReleaseHandle(jobHandle)

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

	return nil
}
func (v *VM) EnableSharedFolders(enabled bool) error {
	var jobHandle C.VixHandle = C.VIX_INVALID_HANDLE
	var err C.VixError = C.VIX_OK

	var share C.Bool = C.FALSE
	if enabled {
		share = C.TRUE
	}

	jobHandle = C.VixVM_EnableSharedFolders(v.handle,
		share,
		0,
		nil,
		nil)

	defer C.Vix_ReleaseHandle(jobHandle)

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

	return nil
}
// Features returns VM supported features.
// func (v *VM) Features() (string, error) {
// 	var err C.VixError = C.VIX_OK
// 	var features *C.char
// 	err = C.get_property(v.handle,
// 		C.VIX_PROPERTY_VM_SUPPORTED_FEATURES,
// 		unsafe.Pointer(&features))
// 	defer C.Vix_FreeBuffer(unsafe.Pointer(features))
// 	if C.VIX_OK != err {
// 		return "", &VixError{
// 			code: int(err & 0xFFFF),
// 			text: C.GoString(C.Vix_GetErrorText(err, nil)),
// 		}
// 	}
// 	return C.GoString(features), nil
// }
// EnableSharedFolders enables or disables all shared folders as a feature for a
// virtual machine.
//
// Remarks:
//
//   * This function enables/disables all shared folders as a feature on a
//     virtual machine. In order to access shared folders on a guest, the
//     feature has to be enabled, and in addition, the individual shared folder
//     has to be enabled.
//
//   * It is not necessary to call VM.LoginInGuest() before calling this function.
//
//   * In this release, this function requires the virtual machine to be powered
//     on with VMware Tools installed.
//
//   * Shared folders are not supported for the following guest operating systems:
//     Windows ME, Windows 98, Windows 95, Windows 3.x, and DOS.
//
//   * On Linux virtual machines, calling this function will automatically mount
//     shared folder(s) in the guest.
//
// Since VMware Workstation 6.0, not available on Server 2.0.
// Minimum Supported Guest OS: Microsoft Windows NT Series, Linux
//