home *** CD-ROM | disk | FTP | other *** search
- /* SCCSID = @(#)bsetib.h 6.9 92/03/15 */
- /***************************************************************************\
- *
- * Module Name: BSETIB.H
- *
- * OS/2 Thread Information Block Include File
- *
- * Copyright (c) 1989, 1992 IBM Corporation
- * Copyright (c) 1989 Microsoft Corporation
- *
- *****************************************************************************/
-
- #ifdef __IBMC__
- #pragma checkout( suspend )
- #ifndef __CHKHDR__
- #pragma checkout( suspend )
- #endif
- #pragma checkout( resume )
- #endif
-
- #ifndef __BSETIB__
- #define __BSETIB__
-
- /*
- * Thread Information Block (TIB)
- */
-
- struct tib2_s
- {
- ULONG tib2_ultid; /* Thread I.D. */
- ULONG tib2_ulpri; /* Thread priority */
- ULONG tib2_version; /* Version number for this structure */
- USHORT tib2_usMCCount; /* Must Complete count */
- USHORT tib2_fMCForceFlag; /* Must Complete force flag */
- };
-
- typedef struct tib2_s TIB2;
- typedef struct tib2_s *PTIB2;
-
- struct tib_s /* TIB Thread Information Block */
- {
- PVOID tib_pexchain; /* Head of exception handler chain */
- PVOID tib_pstack; /* Pointer to base of stack */
- PVOID tib_pstacklimit; /* Pointer to end of stack */
- PTIB2 tib_ptib2; /* Pointer to system specific TIB */
- ULONG tib_version; /* Version number for this TIB structure */
- ULONG tib_ordinal; /* Thread ordinal number */
- };
-
-
- typedef struct tib_s tib_t;
- typedef struct tib_s TIB;
- typedef struct tib_s *PTIB;
-
-
- /*
- * Process Information Block (PIB)
- */
-
-
- struct pib_s { /* PIB Process Information Block */
- ULONG pib_ulpid; /* Process I.D. */
- ULONG pib_ulppid; /* Parent process I.D. */
- ULONG pib_hmte; /* Program (.EXE) module handle */
- PCHAR pib_pchcmd; /* Command line pointer */
- PCHAR pib_pchenv; /* Environment pointer */
- ULONG pib_flstatus; /* Process' status bits */
- ULONG pib_ultype; /* Process' type code */
- };
-
-
- typedef struct pib_s pib_t;
- typedef struct pib_s PIB;
- typedef struct pib_s *PPIB;
-
- #endif /* __BSETIB__ */
-
- #ifdef __IBMC__
- #pragma checkout( suspend )
- #ifndef __CHKHDR__
- #pragma checkout( resume )
- #endif
- #pragma checkout( resume )
- #endif
-