Line | |
---|
1 | /* $Id: exceptutil.h,v 1.12 2001-06-27 19:09:35 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Exception + misc functions for OS/2
|
---|
5 | * Copyright 1998 Sander van Leeuwen
|
---|
6 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
7 | */
|
---|
8 | #ifndef __EXCEPT_H__
|
---|
9 | #define __EXCEPT_H__
|
---|
10 |
|
---|
11 | #ifdef __cplusplus
|
---|
12 | extern "C" {
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | //SvL: Replace original startup code exception handler
|
---|
16 | #ifndef WIN32_TIBSEL
|
---|
17 | void ReplaceExceptionHandler(void);
|
---|
18 | void ChangeTIBStack();
|
---|
19 | #endif
|
---|
20 | void __cdecl SetExceptionChain(DWORD);
|
---|
21 |
|
---|
22 | extern "C" PVOID QueryExceptionChain();
|
---|
23 |
|
---|
24 | void OS2SetExceptionHandler(void *exceptframe);
|
---|
25 | void OS2UnsetExceptionHandler(void *exceptframe);
|
---|
26 | void SetOS2ExceptionChain(ULONG val);
|
---|
27 |
|
---|
28 | #ifdef DEBUG
|
---|
29 | void PrintExceptionChain();
|
---|
30 | #else
|
---|
31 | #define PrintExceptionChain()
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | ULONG getEAX();
|
---|
35 | ULONG getEBX();
|
---|
36 | ULONG getESP();
|
---|
37 | USHORT getSS();
|
---|
38 | USHORT getDS();
|
---|
39 | USHORT getCS();
|
---|
40 | USHORT getSS();
|
---|
41 | USHORT getES();
|
---|
42 | USHORT getFS();
|
---|
43 | USHORT getGS();
|
---|
44 |
|
---|
45 | void CDECL Mul32x32to64(PVOID result, DWORD op1, DWORD op2);
|
---|
46 |
|
---|
47 | ULONG CDECL AsmCallThreadHandler(ULONG handler, LPVOID parameter);
|
---|
48 |
|
---|
49 | DWORD CDECL CallEntryPoint(DWORD entryPoint, DWORD parameter);
|
---|
50 |
|
---|
51 | #ifdef __cplusplus
|
---|
52 | }
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | #define ENTER_EXCEPTION 0
|
---|
56 | #define LEAVE_EXCEPTION 1
|
---|
57 | void LogException(int state);
|
---|
58 |
|
---|
59 |
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.