4 /* $Id: os_support.h 24643 2006-10-24 11:45:21Z janderwald $
6 * PROJECT: System regression tool for ReactOS
7 * LICENSE: GPL - See COPYING in the top level directory
8 * FILE: tools/sysreg/conf_parser.h
9 * PURPOSE: operating systems specific code
10 * PROGRAMMERS: Johannes Anderwald (johannes.anderwald at sbox tugraz at)
15 #elif defined(__LINUX__)
19 #include "user_types.h"
23 //---------------------------------------------------------------------------------------
27 /// Description: this class encapsulates operating system specific functions
36 typedef DWORD ProcessID
;
38 #elif defined(__LINUX__)
40 typedef pid_t ProcessID
;
43 #error you need to define pid handle type for your platform
46 //---------------------------------------------------------------------------------------
50 /// Description: constructor of class OsSupport
55 //---------------------------------------------------------------------------------------
59 /// Description: this functions creates a new process and returns its pid on success
61 /// @param procname name of the file to execute
62 /// @param procargsnum num of arguments for the new process
63 /// @param procargs arguments for the new process
67 static ProcessID
createProcess(TCHAR
* procname
, int procargsnum
, TCHAR
** procargs
);
69 //---------------------------------------------------------------------------------------
73 /// Description: this function terminates a process given by its pid
75 /// Note: returns true if the process with the given pid was terminated
77 /// @param pid process id of the process to terminate
79 static bool terminateProcess(ProcessID pid
);
82 //---------------------------------------------------------------------------------------
86 /// Description: constructor of class OsSupport
91 }; // end of class OsSupport
93 } // end of namespace System_
95 #endif /* end of OS_SUPPORT_H__ */