source: trunk/include/wprocess.h@ 5335

Last change on this file since 5335 was 5335, checked in by sandervl, 25 years ago

header update

File size: 1.2 KB
RevLine 
[5335]1/* $Id: wprocess.h,v 1.19 2001-03-19 19:30:15 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
[2086]19#include <winconst.h>
[1887]20typedef ULONG PDB;
[1067]21#endif
[127]22#include <thread.h>
23
[5335]24TEB * WIN32API InitializeTIB(BOOL fMainThread = FALSE);
25void WIN32API DestroyTIB();
26ULONG WIN32API GetProcessTIBSel();
[124]27
[281]28void WIN32API RestoreOS2TIB();
29USHORT WIN32API SetWin32TIB();
[1891]30void SetPDBInstance(HINSTANCE hInstance);
[127]31
32extern BOOL fExeStarted;
[953]33extern BOOL fFreeLibrary;
[1222]34extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
35 //FALSE -> otherwise
[4232]36extern BOOL fExitProcess;
[127]37
[281]38//Flat pointer to thread TIB structure
39extern DWORD *TIBFlatPtr;
40
[1885]41extern PDB ProcessPDB;
42
43#define NtCurrentTeb GetThreadTEB
[320]44TEB *WIN32API GetThreadTEB();
[4657]45TEB *WIN32API GetTEBFromThreadId(ULONG threadId);
46TEB *WIN32API GetTEBFromThreadHandle(HANDLE hThread);
[320]47
[1887]48#ifndef OS2_INCLUDED
49inline PDB * PROCESS_Current(void)
[1885]50{
51 return NtCurrentTeb()->process;
52}
[1887]53#endif
[1885]54
[4234]55ULONG InitCommandLine(const char *pszPeExe);
56
57#endif
Note: See TracBrowser for help on using the repository browser.