home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / BSETIB.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  3KB  |  71 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  5. /*                                                                           */
  6. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  7. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  8. /*    drivers. You may use this code in accordance with the IBM License      */
  9. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  10. /*    Copyright statement may not be removed.                                */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13. /*static char *SCCSID = "@(#)bsetib.h    6.3 92/02/12";*/
  14. /*
  15.  * SCCSID = @(#)bsetib.h    6.3 92/02/12
  16.  *
  17.  * Module Name: bsetib.h
  18.  *
  19.  * OS/2 Thread Information Block Include File
  20.  *
  21.  */
  22.  
  23. /*
  24.  *      Thread Information Block (TIB)
  25.  */
  26.  
  27.  
  28. struct tib2_s {
  29.         ULONG   tib2_ultid;             /* Thread I.D. */
  30.         ULONG   tib2_ulpri;             /* Thread priority */
  31.         ULONG   tib2_version;           /* Version number for this structure */
  32.         USHORT  tib2_usMCCount;         /* Must Complete count */
  33.         USHORT  tib2_fMCForceFlag;      /* Must Complete force flag */
  34. };
  35.  
  36. typedef struct tib2_s TIB2;
  37. typedef struct tib2_s *PTIB2;
  38.  
  39. struct tib_s {                          /* TIB Thread Information Block */
  40.         PVOID   tib_pexchain;           /* Head of exception handler chain */
  41.         PVOID   tib_pstack;             /* Pointer to base of stack */
  42.         PVOID   tib_pstacklimit;        /* Pointer to end of stack */
  43.         PTIB2   tib_ptib2;              /* Pointer to system specific TIB */
  44.         ULONG   tib_version;            /* Version number for this TIB structure */
  45.         ULONG   tib_ordinal;            /* Thread Ordinal Number DCR 1355 */
  46. };
  47.  
  48. typedef struct tib_s    tib_t;
  49. typedef struct tib_s    TIB;
  50. typedef struct tib_s    *PTIB;
  51.  
  52. /*
  53.  *      Process Information Block (PIB)
  54.  */
  55.  
  56.  
  57. struct pib_s {                          /* PIB Process Information Block */
  58.         ULONG   pib_ulpid;              /* Process I.D. */
  59.         ULONG   pib_ulppid;             /* Parent process I.D. */
  60.         ULONG   pib_hmte;               /* Program (.EXE) module handle */
  61.         PCHAR   pib_pchcmd;             /* Command line pointer */
  62.         PCHAR   pib_pchenv;             /* Environment pointer */
  63.         ULONG   pib_flstatus;           /* Process' status bits */
  64.         ULONG   pib_ultype;             /* Process' type code */
  65. };
  66.  
  67.  
  68. typedef struct pib_s    pib_t;
  69. typedef struct pib_s    PIB;
  70. typedef struct pib_s    *PPIB;
  71.