| Rev | Line | |
|---|
| [1887] | 1 | /* $Id: wprocess.h,v 1.11 1999-11-30 14:32:50 sandervl Exp $ */
|
|---|
| [124] | 2 | /*
|
|---|
| 3 | * Process help functions
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (C) 1999 Sander van Leeuwen
|
|---|
| 6 | *
|
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef _WPROCESS_H__
|
|---|
| 12 | #define _WPROCESS_H__
|
|---|
| 13 |
|
|---|
| [130] | 14 | #define WIN32_TIBSEL
|
|---|
| [125] | 15 |
|
|---|
| [1067] | 16 | #ifndef OS2_INCLUDED
|
|---|
| [1887] | 17 | #include <winprocess.h>
|
|---|
| 18 | #else
|
|---|
| 19 | typedef ULONG PDB;
|
|---|
| [1067] | 20 | #endif
|
|---|
| [127] | 21 | #include <thread.h>
|
|---|
| 22 |
|
|---|
| 23 | TEB *InitializeTIB(BOOL fMainThread = FALSE);
|
|---|
| [124] | 24 | void DestroyTIB();
|
|---|
| 25 |
|
|---|
| [281] | 26 | void WIN32API RestoreOS2TIB();
|
|---|
| 27 | USHORT WIN32API SetWin32TIB();
|
|---|
| [127] | 28 |
|
|---|
| 29 | extern BOOL fExeStarted;
|
|---|
| [953] | 30 | extern BOOL fFreeLibrary;
|
|---|
| [1222] | 31 | extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
|
|---|
| 32 | //FALSE -> otherwise
|
|---|
| [127] | 33 |
|
|---|
| [281] | 34 | //Flat pointer to thread TIB structure
|
|---|
| 35 | extern DWORD *TIBFlatPtr;
|
|---|
| 36 |
|
|---|
| [1885] | 37 | extern PDB ProcessPDB;
|
|---|
| 38 |
|
|---|
| 39 | #define NtCurrentTeb GetThreadTEB
|
|---|
| [320] | 40 | TEB *WIN32API GetThreadTEB();
|
|---|
| 41 | THDB *WIN32API GetThreadTHDB();
|
|---|
| 42 |
|
|---|
| [1887] | 43 | #ifndef OS2_INCLUDED
|
|---|
| 44 | inline PDB * PROCESS_Current(void)
|
|---|
| [1885] | 45 | {
|
|---|
| 46 | return NtCurrentTeb()->process;
|
|---|
| 47 | }
|
|---|
| [1887] | 48 | #endif
|
|---|
| [1885] | 49 |
|
|---|
| [124] | 50 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.