21 #ifndef INCLUDED_OSL_PROCESS_H 22 #define INCLUDED_OSL_PROCESS_H 39 #define osl_Process_WAIT 0x0001 40 #define osl_Process_SEARCHPATH 0x0002 41 #define osl_Process_DETACHED 0x0004 42 #define osl_Process_NORMAL 0x0000 43 #define osl_Process_HIDDEN 0x0010 44 #define osl_Process_MINIMIZED 0x0020 45 #define osl_Process_MAXIMIZED 0x0040 46 #define osl_Process_FULLSCREEN 0x0080 51 #define osl_Process_IDENTIFIER 0x0001 52 #define osl_Process_EXITCODE 0x0002 53 #define osl_Process_CPUTIMES 0x0004 54 #define osl_Process_HEAPUSAGE 0x0008 70 # pragma pack(push, 8) 151 rtl_uString* ustrImageName,
152 rtl_uString* ustrArguments[],
153 sal_uInt32 nArguments,
156 rtl_uString* ustrDirectory,
157 rtl_uString* ustrEnvironments[],
158 sal_uInt32 nEnvironmentVars,
230 rtl_uString* strImageName,
231 rtl_uString* ustrArguments[],
232 sal_uInt32 nArguments,
235 rtl_uString* ustrDirectory,
236 rtl_uString* ustrEnvironments[],
237 sal_uInt32 nEnvironmentVars,
332 rtl_uString **strFile);
347 sal_uInt32 nArg, rtl_uString **strCommandArg);
369 rtl_uString *strVar, rtl_uString **strValue);
378 rtl_uString *strVar, rtl_uString *strValue);
386 rtl_uString *strVar);
395 rtl_uString **pustrWorkingDir );
420 #endif // INCLUDED_OSL_PROCESS_H sal_uInt32 HeapUsage
Definition: process.h:80
SAL_DLLPUBLIC oslProcessError osl_joinProcessWithTimeout(oslProcess Process, const TimeValue *pTimeout)
Wait with a timeout for the completion of the specified child process.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
SAL_DLLPUBLIC oslProcess osl_getProcess(oslProcessIdentifier Ident) SAL_COLD
SAL_DLLPUBLIC oslProcessError osl_clearEnvironment(rtl_uString *strVar)
Unsets the value of one environment variable.
The implementation structure of a locale.
Definition: locale.h:42
Main goals and usage hints.
void * oslProcess
Process handle.
Definition: process.h:95
sal_Int32 oslProcessOption
Definition: process.h:38
SAL_DLLPUBLIC oslProcessError osl_joinProcess(oslProcess Process)
Wait for completion of the specified childprocess.
void * oslFileHandle
Definition: file.h:626
SAL_DLLPUBLIC void osl_setCommandArgs(int argc, char **argv)
Set the command-line arguments as passed to the main-function of this process.
SAL_DLLPUBLIC oslProcessError osl_getProcessWorkingDir(rtl_uString **pustrWorkingDir)
Get the working directory of the current process as a file URL.
oslProcessExitCode Code
Definition: process.h:77
SAL_DLLPUBLIC oslProcessError osl_terminateProcess(oslProcess Process)
Terminate a process.
sal_uInt32 Size
Definition: process.h:74
SAL_DLLPUBLIC oslProcessError osl_getCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg)
Get the nArg-th command-line argument passed to the main-function of this process.
SAL_DLLPUBLIC oslProcessError osl_setEnvironment(rtl_uString *strVar, rtl_uString *strValue)
Set the value of one environment variable.
TimeValue UserTime
Definition: process.h:78
sal_uInt32 oslProcessIdentifier
Definition: process.h:56
SAL_DLLPUBLIC sal_uInt32 osl_getCommandArgCount(void)
oslProcessIdentifier Ident
Definition: process.h:76
SAL_DLLPUBLIC oslProcessError osl_setProcessLocale(rtl_Locale *pLocale)
Change the locale of the process.
SAL_DLLPUBLIC oslProcessError osl_executeProcess(rtl_uString *ustrImageName, rtl_uString *ustrArguments[], sal_uInt32 nArguments, oslProcessOption Options, oslSecurity Security, rtl_uString *ustrDirectory, rtl_uString *ustrEnvironments[], sal_uInt32 nEnvironmentVars, oslProcess *pProcess)
Execute a process.
SAL_DLLPUBLIC void osl_freeProcessHandle(oslProcess Process)
Free the specified process-handle.
void * oslSecurity
Process handle.
Definition: security.h:45
SAL_DLLPUBLIC oslProcessError osl_getExecutableFile(rtl_uString **strFile)
Get the filename of the executable.
oslProcessError
Definition: process.h:59
sal_Int32 oslProcessData
Definition: process.h:48
#define SAL_MAX_ENUM
Definition: types.h:223
SAL_DLLPUBLIC oslProcessError osl_getEnvironment(rtl_uString *strVar, rtl_uString **strValue)
Get the value of one environment variable.
SAL_DLLPUBLIC oslProcessError osl_executeProcess_WithRedirectedIO(rtl_uString *strImageName, rtl_uString *ustrArguments[], sal_uInt32 nArguments, oslProcessOption Options, oslSecurity Security, rtl_uString *ustrDirectory, rtl_uString *ustrEnvironments[], sal_uInt32 nEnvironmentVars, oslProcess *pProcess, oslFileHandle *pChildInputWrite, oslFileHandle *pChildOutputRead, oslFileHandle *pChildErrorRead)
Execute a process and redirect child process standard IO.
SAL_DLLPUBLIC oslProcessError osl_getProcessLocale(rtl_Locale **ppLocale)
Get the locale the process is currently running in.
sal_uInt32 oslProcessExitCode
Definition: process.h:57
TimeValue SystemTime
Definition: process.h:79
SAL_DLLPUBLIC oslProcessError osl_getProcessInfo(oslProcess Process, oslProcessData Fields, oslProcessInfo *pInfo)
Retrieves information about a Process.
oslProcessData Fields
Definition: process.h:75