source: trunk/src/kernel32/exceptutil.h@ 4496

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

LoadLibraryExA + memory map close fix, added new registry keys for installation, don't log guard page violation

File size: 1.1 KB
Line 
1/* $Id: exceptutil.h,v 1.10 2000-10-18 17:09:32 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
12extern "C" {
13#endif
14
15//SvL: Replace original startup code exception handler
16#ifndef WIN32_TIBSEL
17void ReplaceExceptionHandler(void);
18void ChangeTIBStack();
19#endif
20void __cdecl SetExceptionChain(DWORD);
21
22extern "C" PVOID QueryExceptionChain();
23
24void OS2SetExceptionHandler(void *exceptframe);
25void OS2UnsetExceptionHandler(void *exceptframe);
26void SetOS2ExceptionChain(ULONG val);
27
28#ifdef DEBUG
29void PrintExceptionChain();
30#else
31#define PrintExceptionChain()
32#endif
33
34ULONG getEAX();
35ULONG getEBX();
36ULONG getESP();
37USHORT getSS();
38USHORT getDS();
39USHORT getCS();
40USHORT getSS();
41USHORT getES();
42USHORT getFS();
43USHORT getGS();
44
45void CDECL Mul32x32to64(PVOID result, DWORD op1, DWORD op2);
46
47#ifdef __cplusplus
48}
49#endif
50
51#define ENTER_EXCEPTION 0
52#define LEAVE_EXCEPTION 1
53void LogException(int state);
54
55#endif
Note: See TracBrowser for help on using the repository browser.