| 1 |
|
|---|
| 2 | /***********************************************************************
|
|---|
| 3 |
|
|---|
| 4 | $Id: systemf.h 1521 2010-05-02 21:48:59Z gyoung $
|
|---|
| 5 |
|
|---|
| 6 | <<<description here>>>
|
|---|
| 7 |
|
|---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
|---|
| 9 | Copyright (c) 2008, 2010 Steven H. Levine
|
|---|
| 10 |
|
|---|
| 11 | Change log
|
|---|
| 12 | 21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c
|
|---|
| 13 | 17 JAN 10 GKY Changes to environment handling in ExecuteOnList to facilitate move of commands
|
|---|
| 14 | to INI and allow the same commandline to have different environments
|
|---|
| 15 | (multiple different command titles).
|
|---|
| 16 | 17 JAN 10 GKY Add ENVIRONMENT_SIZE vaiable to replace multiple (often different hard coded
|
|---|
| 17 | sizes) set to 2048 (the largest value I found).
|
|---|
| 18 |
|
|---|
| 19 | ***********************************************************************/
|
|---|
| 20 |
|
|---|
| 21 | #if !defined(SYSTEMF_H)
|
|---|
| 22 | #define SYSTEMF_H
|
|---|
| 23 |
|
|---|
| 24 | #define RUNTYPE_MASK 0xf
|
|---|
| 25 | #define SYNCHRONOUS 1
|
|---|
| 26 | #define ASYNCHRONOUS 2
|
|---|
| 27 | #define DETACHED 3
|
|---|
| 28 | #define SEPARATE 4
|
|---|
| 29 | #define SEPARATEKEEP 5
|
|---|
| 30 | #define WINDOWED 16
|
|---|
| 31 | #define MAXIMIZED 32
|
|---|
| 32 | #define MINIMIZED 64
|
|---|
| 33 | #define FULLSCREEN 128
|
|---|
| 34 | #define INVISIBLE 256
|
|---|
| 35 | #define BACKGROUND 512
|
|---|
| 36 | #define WAIT 1024
|
|---|
| 37 | #define PROMPT 2048
|
|---|
| 38 | #define KEEP 4096
|
|---|
| 39 | #define ONCE 8192
|
|---|
| 40 | #define DIEAFTER 16384
|
|---|
| 41 | #define SEAMLESS 32768
|
|---|
| 42 | #define CHILD 65536
|
|---|
| 43 |
|
|---|
| 44 | #define ENVIRONMENT_SIZE 2048
|
|---|
| 45 |
|
|---|
| 46 | typedef struct
|
|---|
| 47 | {
|
|---|
| 48 | ULONG flags;
|
|---|
| 49 | CHAR *commandline;
|
|---|
| 50 | CHAR path[CCHMAXPATH];
|
|---|
| 51 | CHAR environment[ENVIRONMENT_SIZE];
|
|---|
| 52 | CHAR tempprompt[128];
|
|---|
| 53 | CHAR title[80];
|
|---|
| 54 | BOOL dropped;
|
|---|
| 55 | }
|
|---|
| 56 | EXECARGS;
|
|---|
| 57 |
|
|---|
| 58 | ULONG CheckExecutibleFlags(HWND hwnd, INT caller);
|
|---|
| 59 | INT ExecOnList(HWND hwnd, PSZ command, INT flags, PSZ tpath, PSZ environment,
|
|---|
| 60 | PSZ *list, PCSZ prompt, PCSZ pszCallingFile, UINT uiLineNumber);
|
|---|
| 61 | BOOL ShowSession(HWND hwnd, PID pid);
|
|---|
| 62 | INT runemf2(INT type, HWND hwnd, PCSZ pszCallingFile, UINT uiLineNumber,
|
|---|
| 63 | PSZ directory, PSZ environment,
|
|---|
| 64 | PSZ formatstring, ...);
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | #endif // SYSTEMF_H
|
|---|