| 1 | /* $Id: probkrnl.h,v 1.5 2000-02-08 12:38:39 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Include file for ProbKrnl.
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) 1998-2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
|
|---|
| 6 | *
|
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | #ifndef _ProbKrnl_h_
|
|---|
| 13 | #define _ProbKrnl_h_
|
|---|
| 14 |
|
|---|
| 15 | /*******************************************************************************
|
|---|
| 16 | * Defined Constants And Macros *
|
|---|
| 17 | *******************************************************************************/
|
|---|
| 18 | #define NUMBER_OF_PROCS 5
|
|---|
| 19 | #define MAX_LENGTH_NAME 32
|
|---|
| 20 |
|
|---|
| 21 | /* entry-point type flag */
|
|---|
| 22 | #define EPT_PROC 0 /* procedure - overload procedure*/
|
|---|
| 23 | #define EPT_PROCIMPORT 1 /* procedure - import only */
|
|---|
| 24 | #define EPT_VAR 2 /* variable/non-procedure - not implemented yet */
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /*******************************************************************************
|
|---|
| 28 | * Structures and Typedefs *
|
|---|
| 29 | *******************************************************************************/
|
|---|
| 30 | #pragma pack(1)
|
|---|
| 31 | typedef struct tagPROCS
|
|---|
| 32 | {
|
|---|
| 33 | unsigned char fFound;
|
|---|
| 34 | unsigned char iObject;
|
|---|
| 35 | unsigned short int cchName;
|
|---|
| 36 | unsigned char achName[MAX_LENGTH_NAME];
|
|---|
| 37 | unsigned long int offObject;
|
|---|
| 38 | unsigned long int ulAddress;
|
|---|
| 39 | unsigned char fType;
|
|---|
| 40 | } PROCS;
|
|---|
| 41 | #pragma pack()
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | /*******************************************************************************
|
|---|
| 46 | * Global Variables *
|
|---|
| 47 | * NOTE! These are only available at init time! *
|
|---|
| 48 | *******************************************************************************/
|
|---|
| 49 | extern PROCS _aProcTab[NUMBER_OF_PROCS]; /* 'aProcTab' in PrbKrnl.c */
|
|---|
| 50 | extern unsigned long int _ulBuild; /* 'ulBuild' in PrbKrnl.c */
|
|---|
| 51 | extern unsigned short int _usVerMajor; /* 'usVerMajor' in PrbKrnl.c */
|
|---|
| 52 | extern unsigned short int _usVerMinor; /* 'usVerMinor' in PrbKrnl.c */
|
|---|
| 53 |
|
|---|
| 54 | #ifdef INCL_16 /* 16-bit only */
|
|---|
| 55 | int ProbeKernel(PRPINITIN pReqPack);
|
|---|
| 56 | #endif
|
|---|
| 57 |
|
|---|
| 58 | #endif
|
|---|
| 59 |
|
|---|