-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprocpil.h
More file actions
36 lines (34 loc) · 767 Bytes
/
procpil.h
File metadata and controls
36 lines (34 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#define SHELL_ALLOC 0x1
#define SHELL_SHOW_WINDOW 0x2
#define SHELL_REDIRECT_STDIN 0x4
#define SHELL_REDIRECT_STDOUT 0x8
typedef struct {
char *pchCommandLine;
char *pchCurDir;
char *pchPath;
#ifdef WIN32
HANDLE fdRead;
HANDLE fdWrite;
PROCESS_INFORMATION piProcInfo;
#else
int fdRead;
int fdWrite;
int pid;
#endif
char *buffer;
int iBufferSize;
int iDelimiter;
unsigned int flags;
}SHELL_PARAM;
#ifdef __cplusplus
extern "C" {
#endif
int ShellRead(SHELL_PARAM* param);
void ShellClean(SHELL_PARAM* param);
int ShellWait(SHELL_PARAM* param, int iTimeout);
int ShellExec(SHELL_PARAM* param);
int ShellTerminate(SHELL_PARAM* param);
int ShellSetPriority(SHELL_PARAM* param, int iPriority);
#ifdef __cplusplus
}
#endif