source: trunk/include/wprocess.h@ 2081

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

header updates for user32

File size: 1.1 KB
RevLine 
[2081]1/* $Id: wprocess.h,v 1.13 1999-12-16 00:09:32 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
19typedef ULONG PDB;
[1067]20#endif
[127]21#include <thread.h>
22
23TEB *InitializeTIB(BOOL fMainThread = FALSE);
[124]24void DestroyTIB();
25
[281]26void WIN32API RestoreOS2TIB();
27USHORT WIN32API SetWin32TIB();
[1891]28void SetPDBInstance(HINSTANCE hInstance);
[127]29
30extern BOOL fExeStarted;
[953]31extern BOOL fFreeLibrary;
[1222]32extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
33 //FALSE -> otherwise
[127]34
[281]35//Flat pointer to thread TIB structure
36extern DWORD *TIBFlatPtr;
37
[1885]38extern PDB ProcessPDB;
39
40#define NtCurrentTeb GetThreadTEB
[320]41TEB *WIN32API GetThreadTEB();
42THDB *WIN32API GetThreadTHDB();
[2081]43THDB *WIN32API GetTHDBFromThreadId(ULONG threadId);
[320]44
[1887]45#ifndef OS2_INCLUDED
46inline PDB * PROCESS_Current(void)
[1885]47{
48 return NtCurrentTeb()->process;
49}
[1887]50#endif
[1885]51
[124]52#endif
Note: See TracBrowser for help on using the repository browser.