mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[FORMATTING]
- Replace big file header with small header - apply consistent indentation of 4 spaces svn path=/trunk/; revision=49324
This commit is contained in:
parent
f69973e1e6
commit
a84fd28122
1 changed files with 339 additions and 353 deletions
|
@ -1,23 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* ReactOS W32 Subsystem
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 ReactOS Team
|
* PROJECT: ReactOS kernel
|
||||||
*
|
* PURPOSE: Driver entry and initialization of win32k
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* FILE: subsystems/win32/win32k/main/main.c
|
||||||
* it under the terms of the GNU General Public License as published by
|
* PROGRAMER:
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Entry Point for win32k.sys
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <win32k.h>
|
#include <win32k.h>
|
||||||
|
@ -398,9 +384,8 @@ DriverEntry (
|
||||||
|
|
||||||
hModuleWin = MmPageEntireDriver(DriverEntry);
|
hModuleWin = MmPageEntireDriver(DriverEntry);
|
||||||
DPRINT("Win32k hInstance 0x%x!\n",hModuleWin);
|
DPRINT("Win32k hInstance 0x%x!\n",hModuleWin);
|
||||||
/*
|
|
||||||
* Register Object Manager Callbacks
|
/* Register Object Manager Callbacks */
|
||||||
*/
|
|
||||||
CalloutData.WindowStationParseProcedure = IntWinStaObjectParse;
|
CalloutData.WindowStationParseProcedure = IntWinStaObjectParse;
|
||||||
CalloutData.WindowStationDeleteProcedure = IntWinStaObjectDelete;
|
CalloutData.WindowStationDeleteProcedure = IntWinStaObjectDelete;
|
||||||
CalloutData.DesktopDeleteProcedure = IntDesktopObjectDelete;
|
CalloutData.DesktopDeleteProcedure = IntDesktopObjectDelete;
|
||||||
|
@ -408,11 +393,10 @@ DriverEntry (
|
||||||
CalloutData.ThreadCallout = Win32kThreadCallback;
|
CalloutData.ThreadCallout = Win32kThreadCallback;
|
||||||
CalloutData.BatchFlushRoutine = NtGdiFlushUserBatch;
|
CalloutData.BatchFlushRoutine = NtGdiFlushUserBatch;
|
||||||
|
|
||||||
/*
|
/* Register our per-process and per-thread structures. */
|
||||||
* Register our per-process and per-thread structures.
|
|
||||||
*/
|
|
||||||
PsEstablishWin32Callouts((PWIN32_CALLOUTS_FPNS)&CalloutData);
|
PsEstablishWin32Callouts((PWIN32_CALLOUTS_FPNS)&CalloutData);
|
||||||
|
|
||||||
|
/* Create the global USER heap */
|
||||||
GlobalUserHeap = UserCreateHeap(&GlobalUserHeapSection,
|
GlobalUserHeap = UserCreateHeap(&GlobalUserHeapSection,
|
||||||
&GlobalUserHeapBase,
|
&GlobalUserHeapBase,
|
||||||
1 * 1024 * 1024); /* FIXME - 1 MB for now... */
|
1 * 1024 * 1024); /* FIXME - 1 MB for now... */
|
||||||
|
@ -422,6 +406,7 @@ DriverEntry (
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Allocate global server info structure */
|
||||||
if (!gpsi)
|
if (!gpsi)
|
||||||
{
|
{
|
||||||
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
|
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
|
||||||
|
@ -438,6 +423,7 @@ DriverEntry (
|
||||||
|
|
||||||
if(!hsemDriverMgmt) hsemDriverMgmt = EngCreateSemaphore();
|
if(!hsemDriverMgmt) hsemDriverMgmt = EngCreateSemaphore();
|
||||||
|
|
||||||
|
/* Create the GDI handle table */
|
||||||
GdiHandleTable = GDIOBJ_iAllocHandleTable(&GdiTableSection);
|
GdiHandleTable = GDIOBJ_iAllocHandleTable(&GdiTableSection);
|
||||||
if (GdiHandleTable == NULL)
|
if (GdiHandleTable == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue