VirtualBox

Changeset 99109 in vbox for trunk/include


Ignore:
Timestamp:
Mar 22, 2023 10:13:00 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156474
Message:

IPRT/process: Added RTPROC_FLAGS_CWD to RTProcCreateEx(), to be able to set the current working directory for created processes. bugref:8053

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/process.h

    r98103 r99109  
    193193 *                          - RTPROC_FLAGS_DESIRED_SESSION_ID: Pointing to a
    194194 *                            uint32_t variable with the desired session ID.
     195 *                          - RTPROC_FLAGS_CWD: Pointing to a string constant
     196 *                            with the directory to chdir() to under the final
     197 *                            execution ID, before starting the process.
     198 *                          - These flags cannot be used in the same call.
    195199 * @param   phProcess   Where to store the process handle on successful return.
    196200 *                      The content is not changed on failure.  NULL is allowed.
     
    253257 * (Windows only, ignored elsewhere).  The @a pvExtraData argument points to
    254258 * a uint32_t containing the session ID, UINT32_MAX means any session.
    255  * Can not be set with RTPROC_FLAGS_TOKEN_SUPPLIED */
     259 * Cannot be set with RTPROC_FLAGS_TOKEN_SUPPLIED or RTPROC_FLAGS_CWD. */
    256260#define RTPROC_FLAGS_DESIRED_SESSION_ID     RT_BIT(11)
    257261/** This is a modifier to RTPROC_FLAGS_PROFILE on unix systems that makes it
     
    263267/** Create process using supplied token. The @a pvExtraData argument points to
    264268 * a HANDLE containing the token used as user credentials for process creation.
    265  * Can not be set with RTPROC_FLAGS_DESIRED_SESSION_ID.
     269 * Cannot be set with RTPROC_FLAGS_DESIRED_SESSION_ID or RTPROC_FLAGS_CWD.
    266270 * Windows only flag, ignored everywhere else. */
    267271#define RTPROC_FLAGS_TOKEN_SUPPLIED         RT_BIT(14)
     272/** The @a pvExtraData argument points to a string containing the directory
     273 * to chdir() to, under the final execution ID, before starting the process.
     274 * Cannot be set with RTPROC_FLAGS_DESIRED_SESSION_ID or
     275 * RTPROC_FLAGS_TOKEN_SUPPLIED. */
     276#define RTPROC_FLAGS_CWD                    RT_BIT(15)
    268277
    269278/** Valid flag mask. */
    270 #define RTPROC_FLAGS_VALID_MASK             UINT32_C(0x7fff)
     279#define RTPROC_FLAGS_VALID_MASK             UINT32_C(0xffff)
    271280/** @}  */
    272281
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