source: trunk/include/wprocess.h@ 1887

Last change on this file since 1887 was 1887, checked in by sandervl, 26 years ago

compilation fixes

File size: 980 bytes
Line 
1/* $Id: wprocess.h,v 1.11 1999-11-30 14:32:50 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
19typedef ULONG PDB;
20#endif
21#include <thread.h>
22
23TEB *InitializeTIB(BOOL fMainThread = FALSE);
24void DestroyTIB();
25
26void WIN32API RestoreOS2TIB();
27USHORT WIN32API SetWin32TIB();
28
29extern BOOL fExeStarted;
30extern BOOL fFreeLibrary;
31extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
32 //FALSE -> otherwise
33
34//Flat pointer to thread TIB structure
35extern DWORD *TIBFlatPtr;
36
37extern PDB ProcessPDB;
38
39#define NtCurrentTeb GetThreadTEB
40TEB *WIN32API GetThreadTEB();
41THDB *WIN32API GetThreadTHDB();
42
43#ifndef OS2_INCLUDED
44inline PDB * PROCESS_Current(void)
45{
46 return NtCurrentTeb()->process;
47}
48#endif
49
50#endif
Note: See TracBrowser for help on using the repository browser.