4 #ifndef INCLUDED_OSL_PROCESS_H
5 #define INCLUDED_OSL_PROCESS_H
22 #define osl_Process_WAIT 0x0001
23 #define osl_Process_SEARCHPATH 0x0002
24 #define osl_Process_DETACHED 0x0004
25 #define osl_Process_NORMAL 0x0000
26 #define osl_Process_HIDDEN 0x0010
27 #define osl_Process_MINIMIZED 0x0020
28 #define osl_Process_MAXIMIZED 0x0040
29 #define osl_Process_FULLSCREEN 0x0080
34 #define osl_Process_IDENTIFIER 0x0001
35 #define osl_Process_EXITCODE 0x0002
36 #define osl_Process_CPUTIMES 0x0004
37 #define osl_Process_HEAPUSAGE 0x0008
53 # pragma pack(push, 8)
134 rtl_uString* ustrImageName,
135 rtl_uString* ustrArguments[],
136 sal_uInt32 nArguments,
139 rtl_uString* ustrDirectory,
140 rtl_uString* ustrEnvironments[],
141 sal_uInt32 nEnvironmentVars,
213 rtl_uString* strImageName,
214 rtl_uString* ustrArguments[],
215 sal_uInt32 nArguments,
218 rtl_uString* ustrDirectory,
219 rtl_uString* ustrEnvironments[],
220 sal_uInt32 nEnvironmentVars,
315 rtl_uString **strFile);
330 sal_uInt32 nArg, rtl_uString **strCommandArg);
352 rtl_uString *strVar, rtl_uString **strValue);
361 rtl_uString *strVar, rtl_uString *strValue);
369 rtl_uString *strVar);
378 rtl_uString **pustrWorkingDir );
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14
#define SAL_MAX_ENUM
Definition: types.h:185
Main goals and usage hints.
void * oslFileHandle
Definition: file.h:610
void * oslSecurity
Process handle.
Definition: security.h:29
The implementation structure of a locale.
Definition: locale.h:27
sal_uInt32 Size
Definition: process.h:57
TimeValue SystemTime
Definition: process.h:62
oslProcessIdentifier Ident
Definition: process.h:59
oslProcessData Fields
Definition: process.h:58
oslProcessExitCode Code
Definition: process.h:60
TimeValue UserTime
Definition: process.h:61
sal_uInt32 HeapUsage
Definition: process.h:63
Time since Jan-01-1970.
Definition: time.h:56
SAL_DLLPUBLIC oslProcessError osl_joinProcessWithTimeout(oslProcess Process, const TimeValue *pTimeout)
Wait with a timeout for the completion of the specified child process.
SAL_DLLPUBLIC oslProcessError osl_joinProcess(oslProcess Process)
Wait for completion of the specified childprocess.
SAL_DLLPUBLIC oslProcess osl_getProcess(oslProcessIdentifier Ident) SAL_COLD
SAL_DLLPUBLIC oslProcessError osl_terminateProcess(oslProcess Process)
Terminate a process.
oslProcessError
Definition: process.h:42
@ osl_Process_E_None
Definition: process.h:43
@ osl_Process_E_InvalidError
Definition: process.h:48
@ osl_Process_E_TimedOut
Definition: process.h:45
@ osl_Process_E_Unknown
Definition: process.h:47
@ osl_Process_E_NoPermission
Definition: process.h:46
@ osl_Process_E_FORCE_EQUAL_SIZE
Definition: process.h:49
@ osl_Process_E_NotFound
Definition: process.h:44
SAL_DLLPUBLIC sal_uInt32 osl_getCommandArgCount(void)
SAL_DLLPUBLIC oslProcessError osl_getProcessInfo(oslProcess Process, oslProcessData Fields, oslProcessInfo *pInfo)
Retrieves information about a Process.
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_getProcessWorkingDir(rtl_uString **pustrWorkingDir)
Get the working directory of the current process as a file URL.
sal_uInt32 oslProcessExitCode
Definition: process.h:40
SAL_DLLPUBLIC oslProcessError osl_setEnvironment(rtl_uString *strVar, rtl_uString *strValue)
Set the value of one environment variable.
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_Int32 oslProcessOption
Definition: process.h:21
SAL_DLLPUBLIC void osl_setCommandArgs(int argc, char **argv)
Set the command-line arguments as passed to the main-function of this process.
sal_uInt32 oslProcessIdentifier
Definition: process.h:39
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_Int32 oslProcessData
Definition: process.h:31
SAL_DLLPUBLIC oslProcessError osl_getProcessLocale(rtl_Locale **ppLocale)
Get the locale the process is currently running in.
SAL_DLLPUBLIC oslProcessError osl_getExecutableFile(rtl_uString **strFile)
Get the filename of the executable.
SAL_DLLPUBLIC oslProcessError osl_setProcessLocale(rtl_Locale *pLocale)
Change the locale of the process.
void * oslProcess
Process handle.
Definition: process.h:78
SAL_DLLPUBLIC oslProcessError osl_clearEnvironment(rtl_uString *strVar)
Unsets the value of one environment variable.
SAL_DLLPUBLIC void osl_freeProcessHandle(oslProcess Process)
Free the specified process-handle.
SAL_DLLPUBLIC oslProcessError osl_getEnvironment(rtl_uString *strVar, rtl_uString **strValue)
Get the value of one environment variable.