VirtualBox

Changeset 27703 in vbox


Ignore:
Timestamp:
Mar 25, 2010 1:17:01 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59304
Message:

Guest Control: Update (VBoxManage, Main, Host Service, VbglR3), not enabled by default.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuestLib.h

    r27314 r27703  
    508508# endif /* VBOX_WITH_GUEST_PROPS defined */
    509509
     510# ifdef VBOX_WITH_GUEST_CONTROL
    510511/** @name Guest control
    511512 * @{ */
    512513VBGLR3DECL(int)     VbglR3GuestCtrlConnect(uint32_t *pu32ClientId);
    513514VBGLR3DECL(int)     VbglR3GuestCtrlDisconnect(uint32_t u32ClientId);
    514 /** @}  */
     515VBGLR3DECL(int)     VbglR3GuestCtrlGetHostMsg(uint32_t u32ClientId, uint32_t *pMsg, void **ppvData, uint32_t *pcbData);
     516/** @}  */
     517# endif /* VBOX_WITH_GUEST_CONTROL defined */
    515518
    516519/** @name User credentials handling
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk

    r27687 r27703  
    9191VBoxGuestR3Lib_DEFS        = \
    9292        VBOX_WITH_HGCM \
    93         $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
     93        $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
     94        $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
    9495VBoxGuestR3Lib_SOURCES     = \
    9596        VBoxGuestR3Lib.cpp \
  • trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk

    r27153 r27703  
    4242 endif
    4343ifdef VBOX_WITH_GUEST_CONTROL
    44  if1of ($(KBUILD_TARGET), win)
    45   VBoxService_DEFS       += VBOXSERVICE_CONTROL
    46  endif
     44  VBoxService_DEFS       += VBOX_WITH_GUEST_CONTROL
    4745endif
    4846endif
     
    5856        VBoxServiceStats.cpp
    5957ifdef VBOX_WITH_GUEST_CONTROL
    60  if1of ($(KBUILD_TARGET), win)
    61   VBoxService_SOURCES    += \
     58 VBoxService_SOURCES    += \
    6259        VBoxServiceControl.cpp
    63  endif
    6460endif
    6561ifdef VBOX_WITH_GUEST_PROPS
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    r24907 r27703  
    4545        $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
    4646        $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
     47        $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
    4748        $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API)
    4849 VBoxManage_DEFS.win   = _WIN32_WINNT=0x0500
     
    6364        VBoxManageDisk.cpp \
    6465        $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
     66        $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp) \
    6567        VBoxManageHelp.cpp \
    6668        VBoxManageHostonly.cpp \
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r26548 r27703  
    385385        { "guestproperty",    handleGuestProperty },
    386386#endif
     387#ifdef VBOX_WITH_GUEST_CONTROL
     388        { "guestcontrol",     handleGuestControl },
     389#endif
    387390        { "metrics",          handleMetrics },
    388391        { "import",           handleImportAppliance },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r25376 r27703  
    9494#define USAGE_STORAGEATTACH         RT_BIT_64(49)
    9595#define USAGE_STORAGECONTROLLER     RT_BIT_64(50)
     96#ifdef VBOX_WITH_GUEST_CONTROL
     97#define USAGE_GUESTCONTROL          RT_BIT_64(51)
     98#endif  /* VBOX_WITH_GUEST_CONTROL defined */
    9699#define USAGE_ALL                   (~(uint64_t)0)
    97100/** @} */
     
    168171#ifndef VBOX_ONLY_DOCS
    169172extern int handleGuestProperty(HandlerArg *a);
     173
     174/* VBoxManageGuestCtrl.cpp */
     175extern int handleGuestControl(HandlerArg *a);
     176extern void usageGuestControl(void);
    170177
    171178/* VBoxManageVMInfo.cpp */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r27548 r27703  
    588588#endif /* VBOX_WITH_GUEST_PROPS defined */
    589589
     590#ifdef VBOX_WITH_GUEST_CONTROL
     591    if (u64Cmd & USAGE_GUESTCONTROL)
     592        usageGuestControl();
     593#endif /* VBOX_WITH_GUEST_CONTROL defined */
     594
    590595    if (u64Cmd & USAGE_METRICS)
    591596    {
  • trunk/src/VBox/HostServices/Makefile.kmk

    r26698 r27703  
    4040 include $(PATH_SUB_CURRENT)/GuestProperties/Makefile.kmk
    4141endif
     42ifdef VBOX_WITH_GUEST_CTRL
     43 include $(PATH_SUB_CURRENT)/GuestControl/Makefile.kmk
     44endif
    4245ifdef VBOX_WITH_GUEST_CONTROL
    4346 include $(PATH_SUB_CURRENT)/GuestControl/Makefile.kmk
  • trunk/src/VBox/Main/GuestImpl.cpp

    r27607 r27703  
    308308}
    309309
     310STDMETHODIMP Guest::ExecuteProgram(IN_BSTR aExecName, ULONG aFlags,
     311                                   ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment),
     312                                   IN_BSTR aStdIn, IN_BSTR aStdOut, IN_BSTR aStdErr,
     313                                   IN_BSTR aUserName, IN_BSTR aPassword,
     314                                   ULONG aTimeoutMS, ULONG* aPID)
     315{
     316#ifndef VBOX_WITH_GUEST_CONTROL
     317    ReturnComNotImplemented();
     318#else  /* VBOX_WITH_GUEST_CONTROL */
     319    return E_NOTIMPL;
     320#endif
     321}
     322
    310323// public methods only for internal purposes
    311324/////////////////////////////////////////////////////////////////////////////
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r27685 r27703  
    84578457  <interface
    84588458     name="IGuest" extends="$unknown"
    8459      uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
     8459     uuid="9576d333-deb9-4c65-0f06-6a1eb6a833e7"
    84608460     wsmap="managed"
    84618461     >
     
    85708570        <desc>Statistics value</desc>
    85718571      </param>
     8572    </method>
     8573
     8574    <method name="executeProgram">
     8575      <desc>
     8576        Executes an existing program inside the guest VM.
     8577
     8578        <result name="E_NOTIMPL">
     8579          Not implemented yet.
     8580        </result>
     8581
     8582      </desc>
     8583      <param name="execName" type="wstring" dir="in">
     8584        <desc>Foobar</desc>
     8585      </param>
     8586      <param name="flags" type="unsigned long" dir="in">
     8587        <desc>Foobar</desc>
     8588      </param>
     8589      <param name="arguments" type="wstring" safearray="yes" dir="in">
     8590        <desc>Foobar</desc>
     8591      </param>
     8592      <param name="environment" type="wstring" safearray="yes" dir="in">
     8593        <desc>Foobar</desc>
     8594      </param>
     8595      <param name="stdIn" type="wstring" dir="in">
     8596        <desc>Foobar</desc>
     8597      </param>
     8598      <param name="stdOut" type="wstring" dir="in">
     8599        <desc>Foobar</desc>
     8600      </param>
     8601      <param name="stdErr" type="wstring" dir="in">
     8602        <desc>Foobar</desc>
     8603      </param>
     8604      <param name="userName" type="wstring" dir="in">
     8605        <desc>Foobar</desc>
     8606      </param>
     8607      <param name="password" type="wstring" dir="in">
     8608        <desc>Foobar</desc>
     8609      </param> 
     8610      <param name="timeoutMS" type="unsigned long" dir="in">
     8611        <desc>Foobar</desc>
     8612      </param> 
     8613      <param name="pid" type="unsigned long" dir="out">
     8614        <desc>Foobar</desc>
     8615      </param> 
    85728616    </method>
    85738617
  • trunk/src/VBox/Main/include/GuestImpl.h

    r27607 r27703  
    7272                              IN_BSTR aDomain, BOOL aAllowInteractiveLogon);
    7373    STDMETHOD(GetStatistic)(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG *aStatVal);
     74    STDMETHOD(ExecuteProgram)(IN_BSTR aExecName, ULONG aFlags,
     75                              ComSafeArrayIn(BSTR, aArguments), ComSafeArrayIn(BSTR, aEnvironment), 
     76                              IN_BSTR aStdIn, IN_BSTR aStdOut, IN_BSTR aStdErr,
     77                              IN_BSTR aUserName, IN_BSTR aPassword,
     78                              ULONG aTimeoutMS, ULONG* aPID);
    7479
    7580    // public methods that are not in IDL
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette