Subversion Repositories SvarDOS

Rev

Rev 469 | Rev 475 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 469 Rev 474
Line 25... Line 25...
25
#ifndef RMODINIT_H
25
#ifndef RMODINIT_H
26
#define RMODINIT_H
26
#define RMODINIT_H
27
 
27
 
28
#define FLAG_EXEC_AND_QUIT 1
28
#define FLAG_EXEC_AND_QUIT 1
29
#define FLAG_PERMANENT 2
29
#define FLAG_PERMANENT 2
-
 
30
#define FLAG_ECHO_BEFORE_BAT 8
30
 
31
 
31
struct rmod_props {
32
struct rmod_props {
32
  char inputbuf[130];         /* input buffer for INT 21, AH=0x0A */
33
  char inputbuf[130];         /* input buffer for INT 21, AH=0x0A */
33
  unsigned short rmodseg;     /* segment where rmod is loaded */
34
  unsigned short rmodseg;     /* segment where rmod is loaded */
34
  unsigned long origparent;   /* original parent (far ptr) of the shell */
35
  unsigned long origparent;   /* original parent (far ptr) of the shell */
35
  unsigned short origenvseg;  /* original environment segment */
36
  unsigned short origenvseg;  /* original environment segment */
36
  unsigned char flags;        /* command line parameters */
37
  unsigned char flags;        /* command line parameters */
37
  unsigned char echoflag;     /* ECHO ON / ECHO OFF */
38
  unsigned char echoflag;     /* ECHO ON / ECHO OFF */
38
  char batfile[130];          /* truename of batch file being processed */
39
  char batfile[130];          /* truename of batch file being processed */
39
  char batargs[130];          /* arguments of the processed batch files */
40
  char batargs[130];          /* arguments of the processed batch files */
40
  unsigned short batnextline; /* next line of bat file to be executed */
41
  unsigned long batnextline;  /* offset in file of next bat line to process */
41
};
42
};
42
 
43
 
43
#define RMOD_OFFSET_ENVSEG     0x2C   /* stored in rmod's PSP */
44
#define RMOD_OFFSET_ENVSEG     0x2C   /* stored in rmod's PSP */
44
#define RMOD_OFFSET_LEXITCODE  0x10A
45
#define RMOD_OFFSET_LEXITCODE  0x10A
45
#define RMOD_OFFSET_COMSPECPTR 0x10C
46
#define RMOD_OFFSET_COMSPECPTR 0x10C