VBoxManageControlVM.cpp revision 14f3b3761dd547223728deb999e4ea962fc83280
f545d156561c08020a67f9640c51454c2df4fb57fabien * VBoxManage - VirtualBox's command-line interface.
f545d156561c08020a67f9640c51454c2df4fb57fabien * Copyright (C) 2006-2009 Sun Microsystems, Inc.
f545d156561c08020a67f9640c51454c2df4fb57fabien * This file is part of VirtualBox Open Source Edition (OSE), as
f545d156561c08020a67f9640c51454c2df4fb57fabien * available from http://www.virtualbox.org. This file is free software;
f545d156561c08020a67f9640c51454c2df4fb57fabien * you can redistribute it and/or modify it under the terms of the GNU
f545d156561c08020a67f9640c51454c2df4fb57fabien * General Public License (GPL) as published by the Free Software
f545d156561c08020a67f9640c51454c2df4fb57fabien * Foundation, in version 2 as it comes in the "COPYING" file of the
f545d156561c08020a67f9640c51454c2df4fb57fabien * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f545d156561c08020a67f9640c51454c2df4fb57fabien * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f545d156561c08020a67f9640c51454c2df4fb57fabien * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
f545d156561c08020a67f9640c51454c2df4fb57fabien * Clara, CA 95054 USA or visit http://www.sun.com if you need
f545d156561c08020a67f9640c51454c2df4fb57fabien * additional information or have any questions.
f545d156561c08020a67f9640c51454c2df4fb57fabien/*******************************************************************************
f545d156561c08020a67f9640c51454c2df4fb57fabien* Header Files *
f545d156561c08020a67f9640c51454c2df4fb57fabien*******************************************************************************/
#include "VBoxManage.h"
char *pszNext;
return (unsigned)u32;
using namespace com;
errorArgument("Missing argument to '%s'. Expected IBM PC AT set 2 keyboard scancode(s) as hex byte(s).", a->argv[1]);
int cScancodes = 0;
&& i < a->argc)
for (i = 0; i < cScancodes; i++)
if (adapter)
#ifdef VBOX_DYNAMIC_NET_ATTACH
if (adapter)
if (fEnabled)
if (adapter)
if (fEnabled)
if (adapter)
if (fEnabled)
#if defined(VBOX_WITH_NETFLT)
#ifdef VBOX_WITH_VRDP
if (vrdpServer)
if (vrdpServer)
if (attach)
if (attach)
bool fAllowLocalLogon = true;
fAllowLocalLogon = false;
CHECK_ERROR_BREAK(guest, SetCredentials(Bstr(a->argv[2]), Bstr(a->argv[3]), Bstr(a->argv[4]), fAllowLocalLogon));
if (!dvdMedium)
if (!dvdMedium)
if (!dvdMedium)
if (dvdMedium)
if (!floppyMedium)
if (!floppyMedium)
CHECK_ERROR(a->virtualBox, OpenFloppyImage(Bstr(a->argv[2]), emptyUUID, floppyMedium.asOutParam()));
if (!floppyMedium)
#endif /* obsolete dvdattach/floppyattach */
int vrc;
int vrc;
RTGetOptInit(&GetOptState, a->argc, a->argv, s_aTeleportOptions, RT_ELEMENTS(s_aTeleportOptions), 2, 0 /*fFlags*/);
int ch;
switch (ch)
CHECK_ERROR_BREAK(console, Teleport(bstrHostname, uPort, bstrPassword, uMaxDowntime, progress.asOutParam()));
if (cMsTimeout)