source: trunk/dll/systemf.h@ 1505

Last change on this file since 1505 was 1498, checked in by Gregg Young, 16 years ago

Changes to get FM2 to compile with the latest watcom 1.9 beta (mostly type casts of CHAR CONSTANT * to CHAR *). Changes to get the environment settings working everywhere again (broken by the change that moved commands to the INI); Added an environment size variable (set to 2048 which was the largest I found hard coded). Still need to find everywhere the environment size is set and use this variable.

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1
2/***********************************************************************
3
4 $Id: systemf.h 1498 2010-01-18 00:57:01Z 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 to INI and allow
14 the same commandline to have different environments (multiple different command titles).
15 17 JAN 10 GKY Add ENVIRONMENT_SIZE vaiable to replace multiple (often different hard coded sizes) set to 2048
16 (the largest value I found).
17
18***********************************************************************/
19
20#if !defined(SYSTEMF_H)
21#define SYSTEMF_H
22
23#define RUNTYPE_MASK 0xf
24#define SYNCHRONOUS 1
25#define ASYNCHRONOUS 2
26#define DETACHED 3
27#define SEPARATE 4
28#define SEPARATEKEEP 5
29#define WINDOWED 16
30#define MAXIMIZED 32
31#define MINIMIZED 64
32#define FULLSCREEN 128
33#define INVISIBLE 256
34#define BACKGROUND 512
35#define WAIT 1024
36#define PROMPT 2048
37#define KEEP 4096
38#define ONCE 8192
39#define DIEAFTER 16384
40#define SEAMLESS 32768
41#define CHILD 65536
42
43#define ENVIRONMENT_SIZE 2048
44
45typedef struct
46{
47 ULONG flags;
48 CHAR *commandline;
49 CHAR path[CCHMAXPATH];
50 CHAR environment[ENVIRONMENT_SIZE];
51 CHAR tempprompt[128];
52 CHAR title[80];
53 BOOL dropped;
54}
55EXECARGS;
56
57ULONG CheckExecutibleFlags(HWND hwnd, INT caller);
58INT ExecOnList(HWND hwnd, PSZ command, INT flags, PSZ tpath, PSZ environment,
59 PSZ *list, PCSZ prompt, PCSZ pszCallingFile, UINT uiLineNumber);
60BOOL ShowSession(HWND hwnd, PID pid);
61INT runemf2(INT type, HWND hwnd, PCSZ pszCallingFile, UINT uiLineNumber,
62 PSZ directory, PSZ environment,
63 PSZ formatstring, ...);
64
65
66#endif // SYSTEMF_H
Note: See TracBrowser for help on using the repository browser.