home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v5.zip / TOOLKT21 / CPLUS / OS2H / BSETIB.H < prev    next >
C/C++ Source or Header  |  1993-05-03  |  3KB  |  87 lines

  1. /*      SCCSID = @(#)bsetib.h    6.9 92/03/15 */
  2. /***************************************************************************\
  3. *
  4. * Module Name: BSETIB.H
  5. *
  6. * OS/2 Thread Information Block Include File
  7. *
  8. * Copyright (c) 1989, 1992  IBM Corporation
  9. * Copyright (c) 1989  Microsoft Corporation
  10. *
  11. *****************************************************************************/
  12.  
  13. #pragma info( none )
  14.    #ifndef __CHKHDR__
  15.       #pragma info( none )
  16.    #endif
  17. #pragma info( restore )
  18. #ifdef __cplusplus
  19.       extern "C" {
  20. #endif
  21.  
  22. #ifndef __BSETIB__
  23. #define __BSETIB__
  24.  
  25. /*
  26.  *      Thread Information Block (TIB)
  27.  */
  28.  
  29. struct tib2_s
  30.        {
  31.        ULONG   tib2_ultid;             /* Thread I.D. */
  32.        ULONG   tib2_ulpri;             /* Thread priority */
  33.        ULONG   tib2_version;           /* Version number for this structure */
  34.        USHORT  tib2_usMCCount;         /* Must Complete count */
  35.        USHORT  tib2_fMCForceFlag;      /* Must Complete force flag */
  36.        };
  37.  
  38. typedef struct tib2_s TIB2;
  39. typedef struct tib2_s *PTIB2;
  40.  
  41. struct tib_s                           /* TIB Thread Information Block */
  42.        {
  43.         PVOID   tib_pexchain;           /* Head of exception handler chain */
  44.         PVOID   tib_pstack;             /* Pointer to base of stack */
  45.         PVOID   tib_pstacklimit;        /* Pointer to end of stack */
  46.         PTIB2   tib_ptib2;              /* Pointer to system specific TIB */
  47.         ULONG   tib_version;            /* Version number for this TIB structure */
  48.         ULONG   tib_ordinal;            /* Thread ordinal number        */
  49.        };
  50.  
  51.  
  52. typedef struct tib_s    tib_t;
  53. typedef struct tib_s    TIB;
  54. typedef struct tib_s    *PTIB;
  55.  
  56.  
  57. /*
  58.  *      Process Information Block (PIB)
  59.  */
  60.  
  61.  
  62. struct pib_s {                         /* PIB Process Information Block */
  63.        ULONG   pib_ulpid;              /* Process I.D. */
  64.        ULONG   pib_ulppid;             /* Parent process I.D. */
  65.        ULONG   pib_hmte;               /* Program (.EXE) module handle */
  66.        PCHAR   pib_pchcmd;             /* Command line pointer */
  67.        PCHAR   pib_pchenv;             /* Environment pointer */
  68.        ULONG   pib_flstatus;           /* Process' status bits */
  69.        ULONG   pib_ultype;             /* Process' type code */
  70.        };
  71.  
  72.  
  73. typedef struct pib_s    pib_t;
  74. typedef struct pib_s    PIB;
  75. typedef struct pib_s    *PPIB;
  76.  
  77. #endif /* __BSETIB__ */
  78.  
  79. #ifdef __cplusplus
  80.         }
  81. #endif
  82. #pragma info( none )
  83.    #ifndef __CHKHDR__
  84.       #pragma info( restore )
  85.    #endif
  86. #pragma info( restore )
  87.