home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 20 / ntshell / ntshell.h < prev    next >
C/C++ Source or Header  |  1992-08-30  |  610b  |  31 lines

  1. //
  2. // NTSHELL.H  C language header file for NTSHELL.C
  3. //
  4.  
  5. #define UINT unsigned int
  6. #define VOID void
  7. #define TRUE 1
  8. #define FALSE 0
  9.  
  10. #define INPUTSIZE 80
  11. #define MAXEXENAMESIZE 256
  12.  
  13. // macro to return number of elements in a structure 
  14. #define dim(x) (sizeof(x) / sizeof(x[0]))
  15.  
  16. // local function prototypes
  17. UINT intrinsic(char *);    
  18. VOID extrinsic(char *);
  19. VOID getCommand(char *);
  20. VOID getComspec(char *);
  21. VOID putMsg(char *);
  22. VOID doCls(char *);
  23. VOID doDos(char *);
  24. VOID doExit(char *);
  25.  
  26. // lookup table structure
  27. struct decodeCmd {         
  28.     char * name;
  29.     VOID (*fxn)(char *); } ;
  30.  
  31.