/*
+ * ReactOS W32 Subsystem
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/* $Id$
+ *
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Manage GDI Handles
static int LastHandle = MAX_GDI_HANDLES;
-ULONG CreateGDIHandle(ULONG InternalSize, ULONG UserSize)
+ULONG FASTCALL CreateGDIHandle(ULONG InternalSize, ULONG UserSize)
{
ULONG size;
PENGOBJ pObj;
return 0;
}
-VOID FreeGDIHandle(ULONG Handle)
+VOID FASTCALL FreeGDIHandle(ULONG Handle)
{
if( Handle == 0 || Handle >= MAX_GDI_HANDLES ){
DPRINT1("FreeGDIHandle: invalid handle!!!!\n");
GDIHandles[Handle].pEngObj = NULL;
}
-PVOID AccessInternalObject(ULONG Handle)
+PVOID FASTCALL AccessInternalObject(ULONG Handle)
{
PENGOBJ pEngObj;
return (PVOID)pEngObj;
}
-PVOID AccessUserObject(ULONG Handle)
+PVOID FASTCALL AccessUserObject(ULONG Handle)
{
PENGOBJ pEngObj;
return (PVOID)( (PCHAR)pEngObj + sizeof( ENGOBJ ) );
}
-ULONG AccessHandleFromUserObject(PVOID UserObject)
+ULONG FASTCALL AccessHandleFromUserObject(PVOID UserObject)
{
PENGOBJ pEngObj;
ULONG Handle;
return Handle;
}
-PVOID AccessInternalObjectFromUserObject(PVOID UserObject)
+PVOID FASTCALL AccessInternalObjectFromUserObject(PVOID UserObject)
{
return AccessInternalObject( AccessHandleFromUserObject( UserObject ) );
}
-VOID InitEngHandleTable( void )
+VOID FASTCALL InitEngHandleTable( void )
{
ULONG i;
for( i=1; i < MAX_GDI_HANDLES; i++ ){
GDIHandles[ i ].pEngObj = NULL;
}
}
+/* EOF */