00001 00002 #ifndef _GPROCESS_H_ 00003 #define _GPROCESS_H_ 00004 00005 #include "GStream.h" 00006 00007 LgiFunc bool LgiIsProcess(OsProcessId Pid); 00008 00010 class LgiClass GProcess 00011 { 00012 class GProcessPrivate *d; 00013 00014 public: 00015 GProcess(); 00016 ~GProcess(); 00017 00019 OsProcess Handle(); 00021 OsProcessId GetId(); 00023 int ExitValue(); 00025 bool Terminate(); 00027 bool IsRunning(); 00029 bool Run 00030 ( 00032 const char *Exe, 00034 const char *Args, 00036 const char *Dir, 00041 bool Wait, 00044 GStream *In = 0, 00047 GStream *Out = 0, 00054 int Priority = 0 00055 ); 00056 }; 00057 00058 #endif