Process Control Function
int execvpe(const char *cmdname, const char *const *argv, const char *const *envp);
int _execvpe(const char *cmdname, const char *const *argv, const char *const *envp);
int _wexecvpe(const wchar_t *cmdname, const wchar_t *const *argv, const wchar_t *const *envp);
int _texecvpe(const TCHAR *cmdname, const TCHAR *const *argv, const TCHAR *const *envp);
Internationalization (I18n) Function Overview
These functions load and execute a new process. They are similar to _execve/execve , except that they search the directories listed in the PATH environment variable to find cmdname .
_wexecvpe is the wide-character version of the function; its parameters and return value are wide characters.
_texecvpe is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _execvpe or _wexecvpe .
I18n Issues
Use the appropriate version of the function as required for internationalization support, noting the following:
For a Windows MBCS application, _execvpe depends on the multibyte code page in effect. By default, the multibyte code page is set to the system-default ANSI code page obtained from the operating system at program startup.
Use _getmbcp and _setmbcp to query or change the current multibyte code page, respectively.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Process Control Functions
|