Started kernel queue implementation.
[reactos.git] / reactos / ntoskrnl / ps / win32.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
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: win32.c,v 1.1 2002/01/04 13:09:11 ekohl Exp $
20 *
21 * COPYRIGHT: See COPYING in the top level directory
22 * PROJECT: ReactOS kernel
23 * FILE: ntoskrnl/ps/win32.c
24 * PURPOSE: win32k support
25 * PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
26 * REVISION HISTORY:
27 * 04/01/2002: Created
28 */
29
30 /* INCLUDES ****************************************************************/
31
32 #include <ddk/ntddk.h>
33 #include <internal/ps.h>
34
35 /* TYPES *******************************************************************/
36
37 /* GLOBALS ******************************************************************/
38
39 static ULONG PspWin32ProcessSize = 0;
40
41
42 /* FUNCTIONS ***************************************************************/
43
44 NTSTATUS STDCALL
45 PsCreateWin32Process(PEPROCESS Process)
46 {
47 if (Process->Win32Process != NULL)
48 return(STATUS_SUCCESS);
49
50 Process->Win32Process = ExAllocatePool(NonPagedPool,
51 PspWin32ProcessSize);
52 if (Process->Win32Process == NULL)
53 return(STATUS_NO_MEMORY);
54
55 RtlZeroMemory(Process->Win32Process,
56 PspWin32ProcessSize);
57
58 return(STATUS_SUCCESS);
59 }
60
61
62 VOID STDCALL
63 PsEstablishWin32Callouts(PVOID Param1,
64 PVOID Param2,
65 PVOID Param3,
66 PVOID Param4,
67 PVOID Param5,
68 ULONG W32ProcessSize)
69 {
70 PspWin32ProcessSize = W32ProcessSize;
71 }
72
73 /* EOF */