source: trunk/include/wprocess.h@ 1885

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

Added process api + virtualprotect fix

File size: 940 bytes
RevLine 
[1885]1/* $Id: wprocess.h,v 1.10 1999-11-30 14:19:02 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
[1885]17#include <win\process.h>
[1067]18#endif
[127]19#include <thread.h>
20
21TEB *InitializeTIB(BOOL fMainThread = FALSE);
[124]22void DestroyTIB();
23
[281]24void WIN32API RestoreOS2TIB();
25USHORT WIN32API SetWin32TIB();
[127]26
27extern BOOL fExeStarted;
[953]28extern BOOL fFreeLibrary;
[1222]29extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
30 //FALSE -> otherwise
[127]31
[281]32//Flat pointer to thread TIB structure
33extern DWORD *TIBFlatPtr;
34
[1885]35extern PDB ProcessPDB;
36
37#define NtCurrentTeb GetThreadTEB
[320]38TEB *WIN32API GetThreadTEB();
39THDB *WIN32API GetThreadTHDB();
40
[1885]41inline PDB * WINE_UNUSED PROCESS_Current(void)
42{
43 return NtCurrentTeb()->process;
44}
45
[124]46#endif
Note: See TracBrowser for help on using the repository browser.