VirtualBox

Changeset 26726 in vbox for trunk/include


Ignore:
Timestamp:
Feb 24, 2010 9:16:01 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57974
Message:

RTProcCreateEx prototype.

File:
1 edited

Legend:

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

    r20374 r26726  
    137137RTR3DECL(int)   RTProcCreate(const char *pszExec, const char * const *papszArgs, RTENV Env, unsigned fFlags, PRTPROCESS pProcess);
    138138
    139 /** @name RTProcCreate flags
     139
     140/**
     141 * Create a child process.
     142 *
     143 * @returns IPRT status code.
     144 *
     145 * @param   pszExec     Executable image to use to create the child process.
     146 * @param   papszArgs   Pointer to an array of arguments to the child.  The
     147 *                      array terminated by an entry containing NULL.
     148 * @param   hEnv        Handle to the environment block for the child.  Pass
     149 *                      RTENV_DEFAULT to use the environment of the current
     150 *                      process.
     151 * @param   fFlags      Flags, one of the RTPROC_FLAGS_* defines.
     152 * @param   phStdIn     The standard in handle to assign the new process. Pass
     153 *                      NULL to use the same as the current process.
     154 * @param   phStdOut    The standard out handle to assign the new process.  Pass
     155 *                      NULL to use the same as the current process.
     156 * @param   phStdErr    The standard error handle to assign the new process.  Pass
     157 *                      NULL to use the same as the current process.
     158 * @param   pszAsUser   User to run the process as.  Pass NULL to use the same
     159 *                      user as the current process.
     160 * @param   phProcess   Where to store the process handle on successful return.
     161 *                      The content is not changed on failure.  NULL is allowed.
     162 *
     163 * @remarks The as-user feature isn't supported/implemented on all platforms and
     164 *          will cause a-yet-to-be-determined-error-status on these.
     165 */
     166RTR3DECL(int)   RTProcCreateEx(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags,
     167                               PCRTHANDLE phStdIn, PCRTHANDLE phStdOut, PCRTHANDLE phStdErr, const char *pszAsUser,
     168                               PRTPROCESS phProcess);
     169
     170/** @name RTProcCreate and RTProcCreateEx flags
    140171 * @{ */
    141172/** Daemonize the child process, without changing the directory.
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