Last change
on this file since 1891 was 1891, checked in by sandervl, 26 years ago |
makefile updates (define i386) + pe image hdr change
|
File size:
1.0 KB
|
Line | |
---|
1 | /* $Id: wprocess.h,v 1.12 1999-11-30 19:39:14 sandervl Exp $ */
|
---|
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 |
|
---|
14 | #define WIN32_TIBSEL
|
---|
15 |
|
---|
16 | #ifndef OS2_INCLUDED
|
---|
17 | #include <winprocess.h>
|
---|
18 | #else
|
---|
19 | typedef ULONG PDB;
|
---|
20 | #endif
|
---|
21 | #include <thread.h>
|
---|
22 |
|
---|
23 | TEB *InitializeTIB(BOOL fMainThread = FALSE);
|
---|
24 | void DestroyTIB();
|
---|
25 |
|
---|
26 | void WIN32API RestoreOS2TIB();
|
---|
27 | USHORT WIN32API SetWin32TIB();
|
---|
28 | void SetPDBInstance(HINSTANCE hInstance);
|
---|
29 |
|
---|
30 | extern BOOL fExeStarted;
|
---|
31 | extern BOOL fFreeLibrary;
|
---|
32 | extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
|
---|
33 | //FALSE -> otherwise
|
---|
34 |
|
---|
35 | //Flat pointer to thread TIB structure
|
---|
36 | extern DWORD *TIBFlatPtr;
|
---|
37 |
|
---|
38 | extern PDB ProcessPDB;
|
---|
39 |
|
---|
40 | #define NtCurrentTeb GetThreadTEB
|
---|
41 | TEB *WIN32API GetThreadTEB();
|
---|
42 | THDB *WIN32API GetThreadTHDB();
|
---|
43 |
|
---|
44 | #ifndef OS2_INCLUDED
|
---|
45 | inline PDB * PROCESS_Current(void)
|
---|
46 | {
|
---|
47 | return NtCurrentTeb()->process;
|
---|
48 | }
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.