21 #ifndef INCLUDED_OSL_PROCESS_H
22 #define INCLUDED_OSL_PROCESS_H
42 #define osl_Process_WAIT 0x0001
43 #define osl_Process_SEARCHPATH 0x0002
44 #define osl_Process_DETACHED 0x0004
45 #define osl_Process_NORMAL 0x0000
46 #define osl_Process_HIDDEN 0x0010
47 #define osl_Process_MINIMIZED 0x0020
48 #define osl_Process_MAXIMIZED 0x0040
49 #define osl_Process_FULLSCREEN 0x0080
54 #define osl_Process_IDENTIFIER 0x0001
55 #define osl_Process_EXITCODE 0x0002
56 #define osl_Process_CPUTIMES 0x0004
57 #define osl_Process_HEAPUSAGE 0x0008
81 #define osl_Process_DFNONE 0x0000
82 #define osl_Process_DFWAIT 0x0001
85 # pragma pack(push, 8)
173 rtl_uString* ustrImageName,
174 rtl_uString* ustrArguments[],
175 sal_uInt32 nArguments,
176 oslProcessOption Options,
178 rtl_uString* ustrDirectory,
179 rtl_uString* ustrEnvironments[],
180 sal_uInt32 nEnvironmentVars,
181 oslProcess* pProcess);
259 rtl_uString* strImageName,
260 rtl_uString* ustrArguments[],
261 sal_uInt32 nArguments,
262 oslProcessOption Options,
264 rtl_uString* ustrDirectory,
265 rtl_uString* ustrEnvironments[],
266 sal_uInt32 nEnvironmentVars,
267 oslProcess* pProcess,
290 oslProcessIdentifier Ident);
326 oslProcess Process,
const TimeValue* pTimeout);
344 oslProcess Process, oslProcessData Fields,
oslProcessInfo* pInfo);
352 rtl_uString **strFile);
367 sal_uInt32 nArg, rtl_uString **strCommandArg);
389 rtl_uString *strVar, rtl_uString **strValue);
398 rtl_uString *strVar, rtl_uString *strValue);
406 rtl_uString *strVar);
415 rtl_uString **pustrWorkingDir );
449 #endif // INCLUDED_OSL_PROCESS_H
TimeValue SystemTime
Definition: process.h:94
sal_uInt32 Size
Definition: process.h:89
SAL_DLLPUBLIC oslProcessError osl_setProcessLocale(rtl_Locale *pLocale)
Change the locale of the process.
sal_uInt32 oslProcessIdentifier
Definition: process.h:59
TimeValue UserTime
Definition: process.h:93
SAL_DLLPUBLIC oslProcessError osl_clearEnvironment(rtl_uString *strVar)
Unsets the value of one enviroment variable.
Main goals and usage hints.
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 sal_Bool osl_sendResourcePipe(oslPipe Pipe, oslSocket Socket)
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_getProcessInfo(oslProcess Process, oslProcessData Fields, oslProcessInfo *pInfo)
Retrieves information about a Process.
SAL_DLLPUBLIC sal_uInt32 osl_getCommandArgCount(void)
oslProcessExitCode Code
Definition: process.h:92
struct oslSocketImpl * oslSocket
Definition: socket.h:403
SAL_DLLPUBLIC oslProcessError osl_setEnvironment(rtl_uString *strVar, rtl_uString *strValue)
Set the value of one enviroment variable.
sal_Int32 oslProcessOption
Definition: process.h:41
oslProcessData Fields
Definition: process.h:90
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 HeapUsage
Definition: process.h:95
SAL_DLLPUBLIC oslProcessError osl_terminateProcess(oslProcess Process)
Terminate a process.
SAL_DLLPUBLIC oslProcessError osl_joinProcess(oslProcess Process)
Wait for completation of the specified childprocess.
SAL_DLLPUBLIC void osl_freeProcessHandle(oslProcess Process)
Free the specified proces-handle.
SAL_DLLPUBLIC oslProcessError osl_getEnvironment(rtl_uString *strVar, rtl_uString **strValue)
Get the value of one enviroment variable.
void * oslFileHandle
Definition: file.h:634
SAL_DLLPUBLIC oslSocket osl_receiveResourcePipe(oslPipe Pipe)
oslDescriptorType
Definition: process.h:72
SAL_DLLPUBLIC oslProcessError osl_getExecutableFile(rtl_uString **strFile)
Get the filename of the executable.
sal_Int32 oslDescriptorFlag
Definition: process.h:80
unsigned char sal_Bool
Definition: types.h:46
oslProcessIdentifier Ident
Definition: process.h:91
SAL_DLLPUBLIC oslProcess osl_getProcess(oslProcessIdentifier Ident)
The implementation structur of a locale.
Definition: locale.h:42
sal_Int32 oslProcessData
Definition: process.h:51
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.
struct oslPipeImpl * oslPipe
Definition: pipe.h:53
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
SAL_DLLPUBLIC oslProcessError osl_joinProcessWithTimeout(oslProcess Process, const TimeValue *pTimeout)
Wait with a timeout for the completion of the specified child process.
sal_uInt32 oslProcessExitCode
Definition: process.h:60
SAL_DLLPUBLIC oslProcessError osl_getProcessWorkingDir(rtl_uString **pustrWorkingDir)
Get the working directory of the current process as a file URL.
oslProcessError
Definition: process.h:62
void * oslProcess
Process handle.
Definition: process.h:110
void * oslSecurity
Process handle.
Definition: security.h:45
SAL_DLLPUBLIC oslProcessError osl_getProcessLocale(rtl_Locale **ppLocale)
Get the locale the process is currently running in.