45180c7800fd7ba8d1227857a4653706ba95751b
[reactos.git] / reactos / lib / ntdll / rtl / exception.c
1 /* $Id: exception.c,v 1.5 2001/03/18 19:35:12 dwelch Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: User-mode exception support
6 * FILE: lib/ntdll/rtl/exception.c
7 * PROGRAMER: David Welch <welch@cwcom.net>
8 */
9
10 /* INCLUDES *****************************************************************/
11
12 #include <ddk/ntddk.h>
13 #include <windows.h>
14 #include <string.h>
15
16 /* FUNCTIONS ***************************************************************/
17
18 VOID STDCALL
19 RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord)
20 {
21 }
22
23 ULONG
24 RtlDispatchException(PEXCEPTION_RECORD ExceptionRecord,
25 PCONTEXT Context)
26 {
27
28 }
29
30 VOID STDCALL
31 KiUserExceptionDispatcher(PEXCEPTION_RECORD ExceptionRecord,
32 PCONTEXT Context)
33 {
34 EXCEPTION_RECORD NestedExceptionRecord;
35 NTSTATUS Status;
36
37 if (RtlDispatchException(ExceptionRecord, Context) == 1)
38 {
39 Status = ZwContinue(Context, FALSE);
40 }
41 else
42 {
43 Status = ZwRaiseException(ExceptionRecord, Context, FALSE);
44 }
45
46 NestedExceptionRecord.ExceptionCode = Status;
47 NestedExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
48 NestedExceptionRecord.ExceptionRecord = ExceptionRecord;
49
50 RtlRaiseException(&NestedExceptionRecord);
51 }
52
53 VOID STDCALL
54 RtlRaiseStatus(NTSTATUS Status)
55 {
56
57 }
58
59
60 VOID STDCALL
61 RtlUnwind(ULONG Unknown1,
62 ULONG Unknown2,
63 ULONG Unknown3,
64 ULONG Unknown4)
65 {
66
67 }
68
69 /* EOF */