Use free Windows DDK and compile with latest MinGW releases.
[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: apc.c,v 1.6 2002/09/07 15:12:40 chorns Exp $
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 #define NTOS_USER_MODE
30 #include <ntos.h>
31 #include <string.h>
32
33 #define NDEBUG
34 #include <debug.h>
35
36 /* FUNCTIONS ***************************************************************/
37
38 VOID STDCALL
39 KiUserApcDispatcher(PIO_APC_ROUTINE ApcRoutine,
40 PVOID ApcContext,
41 PIO_STATUS_BLOCK Iosb,
42 ULONG Reserved,
43 PCONTEXT Context)
44 {
45 /*
46 * Call the APC
47 */
48 ApcRoutine(ApcContext,
49 Iosb,
50 Reserved);
51 /*
52 * Switch back to the interrupted context
53 */
54 NtContinue(Context, 1);
55 }
56