source: trunk/include/wprocess.h@ 5336

Last change on this file since 5336 was 5336, checked in by sandervl, 24 years ago

header update

File size: 1.2 KB
RevLine 
[124]1/*
2 * Process help functions
3 *
4 * Copyright (C) 1999 Sander van Leeuwen
5 *
6 * Project Odin Software License can be found in LICENSE.TXT
7 *
8 */
9
10#ifndef _WPROCESS_H__
11#define _WPROCESS_H__
12
[130]13#define WIN32_TIBSEL
[125]14
[1067]15#ifndef OS2_INCLUDED
[1887]16#include <winprocess.h>
17#else
[2086]18#include <winconst.h>
[1887]19typedef ULONG PDB;
[1067]20#endif
[127]21#include <thread.h>
22
[5335]23TEB * WIN32API InitializeTIB(BOOL fMainThread = FALSE);
24void WIN32API DestroyTIB();
25ULONG WIN32API GetProcessTIBSel();
[124]26
[281]27void WIN32API RestoreOS2TIB();
28USHORT WIN32API SetWin32TIB();
[1891]29void SetPDBInstance(HINSTANCE hInstance);
[127]30
31extern BOOL fExeStarted;
[953]32extern BOOL fFreeLibrary;
[1222]33extern BOOL fIsOS2Image; //TRUE -> Odin32 OS/2 application (not converted!)
34 //FALSE -> otherwise
[4232]35extern BOOL fExitProcess;
[127]36
[281]37//Flat pointer to thread TIB structure
38extern DWORD *TIBFlatPtr;
39
[1885]40extern PDB ProcessPDB;
41
42#define NtCurrentTeb GetThreadTEB
[320]43TEB *WIN32API GetThreadTEB();
[4657]44TEB *WIN32API GetTEBFromThreadId(ULONG threadId);
45TEB *WIN32API GetTEBFromThreadHandle(HANDLE hThread);
[320]46
[1887]47#ifndef OS2_INCLUDED
48inline PDB * PROCESS_Current(void)
[1885]49{
50 return NtCurrentTeb()->process;
51}
[1887]52#endif
[1885]53
[4234]54ULONG InitCommandLine(const char *pszPeExe);
55
56#endif
Note: See TracBrowser for help on using the repository browser.