indent with astyle v1.15.3: --style=ansi -c -s3 -S --convert-tabs
[reactos.git] / reactos / lib / ntdll / rtl / apc.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2000 David Welch <welch@cwcom.net>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 /* $Id$
20 *
21 * PROJECT: ReactOS kernel
22 * PURPOSE: User-mode APC support
23 * FILE: lib/ntdll/rtl/apc.c
24 * PROGRAMER: David Welch <welch@cwcom.net>
25 */
26
27 /* INCLUDES *****************************************************************/
28
29 #include <ntdll.h>
30 #define NDEBUG
31 #include <debug.h>
32
33 /* FUNCTIONS ***************************************************************/
34
35 VOID STDCALL
36 KiUserApcDispatcher(PIO_APC_ROUTINE ApcRoutine,
37 PVOID ApcContext,
38 PIO_STATUS_BLOCK Iosb,
39 ULONG Reserved,
40 PCONTEXT Context)
41 {
42 /*
43 * Call the APC
44 */
45 //DPRINT1("ITS ME\n");
46 ApcRoutine(ApcContext,
47 Iosb,
48 Reserved);
49 /*
50 * Switch back to the interrupted context
51 */
52 //DPRINT1("switch back\n");
53 NtContinue(Context, 1);
54 }
55