| 1 | /* $Id: probkrnl.h,v 1.2 1999-10-27 02:02:57 bird Exp $ | 
|---|
| 2 | * | 
|---|
| 3 | * Include file for ProbKrnl. | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright (c) 1998-1999 knut st. osmundsen | 
|---|
| 6 | * | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 |  | 
|---|
| 10 | #ifndef _ProbKrnl_h_ | 
|---|
| 11 | #define _ProbKrnl_h_ | 
|---|
| 12 |  | 
|---|
| 13 | /******************************************************************************* | 
|---|
| 14 | *   Defined Constants And Macros                                               * | 
|---|
| 15 | *******************************************************************************/ | 
|---|
| 16 | #define NUMBER_OF_PROCS 4   /* remeber to sync this with ldr_functions.h and dev32_start.asm */ | 
|---|
| 17 |  | 
|---|
| 18 | /* indexes into the _ProcTab/ProcTab table */ | 
|---|
| 19 | #define iLDRREAD              0 | 
|---|
| 20 | #define iLDROPEN              1 | 
|---|
| 21 | #define iLDRCLOSE             2 | 
|---|
| 22 | #define iLDRQAPPTYPE          3 | 
|---|
| 23 |  | 
|---|
| 24 | #define MAX_LENGTH_NAME      32 | 
|---|
| 25 |  | 
|---|
| 26 | /* entry-point type flag */ | 
|---|
| 27 | #define EPT_PROC              0 /* procedure */ | 
|---|
| 28 | #define EPT_VAR               1 /* variable/non-procedure */ | 
|---|
| 29 |  | 
|---|
| 30 |  | 
|---|
| 31 | /******************************************************************************* | 
|---|
| 32 | *   Structures and Typedefs                                                    * | 
|---|
| 33 | *******************************************************************************/ | 
|---|
| 34 | #pragma pack(1) | 
|---|
| 35 | typedef struct tagPROCS | 
|---|
| 36 | { | 
|---|
| 37 | unsigned char       fFound; | 
|---|
| 38 | unsigned char       iObject; | 
|---|
| 39 | unsigned short int  cchName; | 
|---|
| 40 | unsigned char       achName[MAX_LENGTH_NAME]; | 
|---|
| 41 | unsigned long  int  offObject; | 
|---|
| 42 | unsigned long  int  ulAddress; | 
|---|
| 43 | unsigned char       fType; | 
|---|
| 44 | } PROCS; | 
|---|
| 45 | #pragma pack() | 
|---|
| 46 |  | 
|---|
| 47 |  | 
|---|
| 48 |  | 
|---|
| 49 | /******************************************************************************* | 
|---|
| 50 | *   Global Variables                                                           * | 
|---|
| 51 | *   NOTE! These are only available at init time!                               * | 
|---|
| 52 | *******************************************************************************/ | 
|---|
| 53 | extern PROCS _aProcTab[NUMBER_OF_PROCS];    /* 'aProcTab'        in PrbKrnl.c */ | 
|---|
| 54 | extern unsigned long int _ulBuild;          /* 'ulBuild'         in PrbKrnl.c */ | 
|---|
| 55 | extern unsigned long int _fInitSuccess;     /* 'fInitSuccess'    in PrbKrnl.c */ | 
|---|
| 56 | extern unsigned long int _usVerMajor;       /* 'usVerMajor'      in PrbKrnl.c */ | 
|---|
| 57 | extern unsigned long int _usVerMinor;       /* 'usVerMinor'      in PrbKrnl.c */ | 
|---|
| 58 |  | 
|---|
| 59 | #ifdef INCL_16 /* 16-bit only */ | 
|---|
| 60 | int ProbeKernel(PRPINITIN pReqPack); | 
|---|
| 61 | #endif | 
|---|
| 62 |  | 
|---|
| 63 | #endif | 
|---|
| 64 |  | 
|---|