VirtualBox

Changeset 99120 in vbox for trunk/include


Ignore:
Timestamp:
Mar 22, 2023 5:30:14 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156485
Message:

Guest Control: Added ability of specifying an optional current working directory to started guest processes. This needs Guest Additions which support this. bugref:8053

Location:
trunk/include/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/GuestControl.h

    r99085 r99120  
    194194 */
    195195#define GUEST_PROC_DEF_CMD_LEN        _1K
     196#define GUEST_PROC_DEF_CWD_LEN        _1K
    196197#define GUEST_PROC_DEF_ARGS_LEN       _1K
    197198#define GUEST_PROC_DEF_ENV_LEN        _1K
     
    205206 */
    206207#define GUEST_PROC_MAX_CMD_LEN            _1M
     208#define GUEST_PROC_MAX_CWD_LEN            RTPATH_MAX
    207209#define GUEST_PROC_MAX_ARGS_LEN           _2M
    208210#define GUEST_PROC_MAX_ENV_LEN            _4M
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r99088 r99120  
    814814 * The toolbox commands now are being marked as deprecated.
    815815 * @since 7.1 */
    816 # define VBOX_GUESTCTRL_GF_0_TOOLBOX_AS_CMDS        RT_BIT_64(4)
     816#define VBOX_GUESTCTRL_GF_0_TOOLBOX_AS_CMDS         RT_BIT_64(4)
     817/** Supports specifying the working directory for run / start. */
     818#define VBOX_GUESTCTRL_GF_0_PROCESS_CWD             RT_BIT_64(5)
    817819/** Bit that must be set in the 2nd parameter, will be cleared if the host reponds
    818820 * correctly (old hosts might not). */
     
    830832 * @since 6.1.6  */
    831833#define VBOX_GUESTCTRL_HF_0_PROCESS_ARGV0           RT_BIT_64(1)
     834/** Host sends the working directory for run / start, if guest
     835 * reports VBOX_GUESTCTRL_GF_0_PROCESS_CWD.
     836 * @since 6.1.20 ??  */
     837#define VBOX_GUESTCTRL_HF_0_PROCESS_CWD             RT_BIT_64(2)
    832838/** @} */
    833839
     
    12101216            /** Pointer to process affinity blocks (uint64_t). */
    12111217            HGCMFunctionParameter affinity;
     1218            /** Working directory request, filled if guest
     1219             *  reports VBOX_GUESTCTRL_GF_0_PROCESS_CWD. */
     1220            HGCMFunctionParameter cwd;
    12121221        } v2;
    12131222    } u;
  • trunk/include/VBox/VBoxGuestLib.h

    r99085 r99120  
    10291029    /** Number of environment variables specified in pszEnv. */
    10301030    uint32_t cEnvVars;
     1031    /** Optional working directory. */
     1032    char *pszCwd;
     1033    /** Size (in bytes) of optional working directory string. */
     1034    uint32_t cbCwd;
    10311035    /** User name (account) to start the process under. */
    10321036    char *pszUser;
Note: See TracChangeset for help on using the changeset viewer.

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