-move structs OBJECT_TYPE/OBJECT_HEADER into private headers
-correct OBJECT_TYPE_INFORMATION struct
-rename meaningless members OBJECT_TYPE->MaxObjects/MaxHandles to PeakObjects/PeakHandles and init to zero. Both are still unused.
Modified: trunk/reactos/include/ntos/obtypes.h
Modified: trunk/reactos/ntoskrnl/cm/registry.c
Modified: trunk/reactos/ntoskrnl/ex/callback.c
Modified: trunk/reactos/ntoskrnl/ex/win32k.c
Modified: trunk/reactos/ntoskrnl/include/internal/ob.h
Modified: trunk/reactos/ntoskrnl/io/driver.c
Modified: trunk/reactos/ntoskrnl/io/iocomp.c
Modified: trunk/reactos/ntoskrnl/io/iomgr.c
Modified: trunk/reactos/ntoskrnl/lpc/port.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/nt/evtpair.c
Modified: trunk/reactos/ntoskrnl/nt/mutant.c
Modified: trunk/reactos/ntoskrnl/nt/ntevent.c
Modified: trunk/reactos/ntoskrnl/nt/ntsem.c
Modified: trunk/reactos/ntoskrnl/nt/nttimer.c
Modified: trunk/reactos/ntoskrnl/nt/profile.c
Modified: trunk/reactos/ntoskrnl/ob/namespc.c
Modified: trunk/reactos/ntoskrnl/ob/symlink.c
Modified: trunk/reactos/ntoskrnl/ps/job.c
Modified: trunk/reactos/ntoskrnl/ps/process.c
Modified: trunk/reactos/ntoskrnl/ps/thread.c
Modified: trunk/reactos/ntoskrnl/se/token.c

Modified: trunk/reactos/include/ntos/obtypes.h
--- trunk/reactos/include/ntos/obtypes.h	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/include/ntos/obtypes.h	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,6 +1,6 @@
 #ifndef _INCLUDE_DDK_OBTYPES_H
 #define _INCLUDE_DDK_OBTYPES_H
-/* $Id: obtypes.h,v 1.9 2004/11/21 06:51:17 ion Exp $ */
+/* $Id$ */
 struct _DIRECTORY_OBJECT;
 struct _OBJECT_ATTRIBUTES;
 
@@ -35,23 +35,28 @@
 } OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
 
 
-typedef struct _OBJECT_TYPE_INFORMATION
-{
-  UNICODE_STRING Name;
-  ULONG ObjectCount;
-  ULONG ReferenceCount;
-  ULONG Reserved1[4];
-  ULONG PeakObjectCount;
-  ULONG PeakHandleCount;
-  ULONG Reserved2[4];
-  ULONG InvalidAttributes;
-  GENERIC_MAPPING GenericMapping;
-  ULONG ValidAccess;
-  UCHAR Unknown;
-  BOOLEAN MainitainHandleDatabase;
-  POOL_TYPE PoolType;
-  ULONG PagedPoolUsage;
-  ULONG NonPagedPoolUsage;
+typedef struct _OBJECT_TYPE_INFORMATION {
+   UNICODE_STRING TypeName;
+   ULONG TotalNumberOfObjects;
+   ULONG TotalNumberOfHandles;
+   ULONG TotalPagedPoolUsage;
+   ULONG TotalNonPagedPoolUsage;
+   ULONG TotalNamePoolUsage;
+   ULONG TotalHandleTableUsage;
+   ULONG PeakNumberOfObjects;
+   ULONG PeakNumberOfHandles;
+   ULONG PeakPagedPoolUsage;
+   ULONG PeakNonPagedPoolUsage;
+   ULONG PeakNamePoolUsage;
+   ULONG PeakHandleTableUsage;
+   ULONG InvalidAttributes;
+   GENERIC_MAPPING GenericMapping;
+   ULONG ValidAccessMask;
+   BOOLEAN SecurityRequired;
+   BOOLEAN MaintainHandleCount;
+   ULONG PoolType;
+   ULONG DefaultPagedPoolCharge;
+   ULONG DefaultNonPagedPoolCharge;
 } OBJECT_TYPE_INFORMATION, *POBJECT_TYPE_INFORMATION;
 
 
@@ -68,169 +73,10 @@
   BOOLEAN ProtectFromClose;
 } OBJECT_HANDLE_ATTRIBUTE_INFORMATION, *POBJECT_HANDLE_ATTRIBUTE_INFORMATION;
 
-#endif /* __USE_W32API */
 
-typedef struct _OBJECT_TYPE
-{
-  /*
-   * PURPOSE: Tag to be used when allocating objects of this type
-   */
-  ULONG Tag;
-
-  /*
-   * PURPOSE: Name of the type
-   */
-  UNICODE_STRING TypeName;
-  
-  /*
-   * PURPOSE: Total number of objects of this type
-   */
-  ULONG TotalObjects;
-  
-  /*
-   * PURPOSE: Total number of handles of this type
-   */
-  ULONG TotalHandles;
-  
-  /*
-   * PURPOSE: Maximum objects of this type
-   */
-  ULONG MaxObjects;
-  
-   /*
-    * PURPOSE: Maximum handles of this type
-    */
-  ULONG MaxHandles;
-  
-  /*
-   * PURPOSE: Paged pool charge
-   */
-   ULONG PagedPoolCharge;
-  
-  /*
-   * PURPOSE: Nonpaged pool charge
-   */
-  ULONG NonpagedPoolCharge;
-  
-  /*
-   * PURPOSE: Mapping of generic access rights
-   */
-  PGENERIC_MAPPING Mapping;
-  
-  /*
-   * PURPOSE: Dumps the object
-   * NOTE: To be defined
-   */
-  VOID STDCALL_FUNC (*Dump)(VOID);
-  
-  /*
-   * PURPOSE: Opens the object
-   * NOTE: To be defined
-   */
-  VOID STDCALL_FUNC (*Open)(VOID);
-  
-   /*
-    * PURPOSE: Called to close an object if OkayToClose returns true
-    */
-  VOID STDCALL_FUNC (*Close)(PVOID ObjectBody,
-			ULONG HandleCount);
-  
-  /*
-   * PURPOSE: Called to delete an object when the last reference is removed
-   */
-  VOID STDCALL_FUNC (*Delete)(PVOID ObjectBody);
-  
-  /*
-   * PURPOSE: Called when an open attempts to open a file apparently
-   * residing within the object
-   * RETURNS
-   *     STATUS_SUCCESS       NextObject was found
-   *     STATUS_UNSUCCESSFUL  NextObject not found
-   *     STATUS_REPARSE       Path changed, restart parsing the path
-   */
-   NTSTATUS STDCALL_FUNC (*Parse)(PVOID ParsedObject,
-			     PVOID *NextObject,
-			     PUNICODE_STRING FullPath,
-			     PWSTR *Path,
-			     ULONG Attributes);
-
-  /*
-   * PURPOSE: Called to set, query, delete or assign a security-descriptor
-   * to the object
-   * RETURNS
-   *     STATUS_SUCCESS       NextObject was found
-   */
-  NTSTATUS STDCALL_FUNC (*Security)(PVOID ObjectBody,
-				    SECURITY_OPERATION_CODE OperationCode,
-				    SECURITY_INFORMATION SecurityInformation,
-				    PSECURITY_DESCRIPTOR SecurityDescriptor,
-				    PULONG BufferLength);
-
-  /*
-   * PURPOSE: Called to query the name of the object
-   * RETURNS
-   *     STATUS_SUCCESS       NextObject was found
-   */
-  NTSTATUS STDCALL_FUNC (*QueryName)(PVOID ObjectBody,
-				     POBJECT_NAME_INFORMATION ObjectNameInfo,
-				     ULONG Length,
-				     PULONG ReturnLength);
-
-  /*
-   * PURPOSE: Called when a process asks to close the object
-   */
-  VOID STDCALL_FUNC (*OkayToClose)(VOID);
-
-  NTSTATUS STDCALL_FUNC (*Create)(PVOID ObjectBody,
-			     PVOID Parent,
-			     PWSTR RemainingPath,
-			     struct _OBJECT_ATTRIBUTES* ObjectAttributes);
-
-  VOID STDCALL_FUNC (*DuplicationNotify)(PEPROCESS DuplicateTo,
-				    PEPROCESS DuplicateFrom,
-				    PVOID Object);
-} OBJECT_TYPE;
-
-#ifndef __USE_W32API
-
 typedef struct _OBJECT_TYPE *POBJECT_TYPE;
 
-#endif /* __USE_W32API */
 
-
-typedef struct _OBJECT_HEADER
-/*
- * PURPOSE: Header for every object managed by the object manager
- */
-{
-   UNICODE_STRING Name;
-   LIST_ENTRY Entry;
-   LONG RefCount;
-   LONG HandleCount;
-   BOOLEAN CloseInProcess;
-   BOOLEAN Permanent;
-   BOOLEAN Inherit;
-   struct _DIRECTORY_OBJECT* Parent;
-   POBJECT_TYPE ObjectType;
-   PSECURITY_DESCRIPTOR SecurityDescriptor;
-   
-   /*
-    * PURPOSE: Object type
-    * NOTE: This overlaps the first member of the object body
-    */
-   CSHORT Type;
-   
-   /*
-    * PURPOSE: Object size
-    * NOTE: This overlaps the second member of the object body
-    */
-   CSHORT Size;
-   
-   
-} OBJECT_HEADER, *POBJECT_HEADER;
-
-#ifndef __USE_W32API
-
 typedef struct _OBJECT_ATTRIBUTES
 {
    ULONG Length;

Modified: trunk/reactos/ntoskrnl/cm/registry.c
--- trunk/reactos/ntoskrnl/cm/registry.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/cm/registry.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: registry.c,v 1.129 2004/12/12 22:36:10 ekohl Exp $
+/* $Id$
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -259,8 +259,8 @@
   CmiKeyType->Tag = TAG('R', 'e', 'g', 'K');
   CmiKeyType->TotalObjects = 0;
   CmiKeyType->TotalHandles = 0;
-  CmiKeyType->MaxObjects = LONG_MAX;
-  CmiKeyType->MaxHandles = LONG_MAX;
+  CmiKeyType->PeakObjects = 0;
+  CmiKeyType->PeakHandles = 0;
   CmiKeyType->PagedPoolCharge = 0;
   CmiKeyType->NonpagedPoolCharge = sizeof(KEY_OBJECT);
   CmiKeyType->Mapping = &CmiKeyMapping;

Modified: trunk/reactos/ntoskrnl/ex/callback.c
--- trunk/reactos/ntoskrnl/ex/callback.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ex/callback.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: callback.c,v 1.13 2004/10/30 14:02:04 navaraf Exp $
+/* $Id$
  *
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/ex/callback.c
@@ -72,8 +72,8 @@
    ExCallbackObjectType->Tag = CALLBACK_TAG;
    ExCallbackObjectType->TotalObjects = 0;
    ExCallbackObjectType->TotalHandles = 0;
-   ExCallbackObjectType->MaxObjects = 0xFFFFFFFF;
-   ExCallbackObjectType->MaxHandles = 0xFFFFFFFF;
+   ExCallbackObjectType->PeakObjects = 0;
+   ExCallbackObjectType->PeakHandles = 0;
    ExCallbackObjectType->PagedPoolCharge = 0;
    ExCallbackObjectType->Dump = NULL;
    ExCallbackObjectType->Open = NULL;

Modified: trunk/reactos/ntoskrnl/ex/win32k.c
--- trunk/reactos/ntoskrnl/ex/win32k.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ex/win32k.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -297,8 +297,8 @@
   ExWindowStationObjectType->Tag = TAG('W', 'I', 'N', 'S');
   ExWindowStationObjectType->TotalObjects = 0;
   ExWindowStationObjectType->TotalHandles = 0;
-  ExWindowStationObjectType->MaxObjects = ULONG_MAX;
-  ExWindowStationObjectType->MaxHandles = ULONG_MAX;
+  ExWindowStationObjectType->PeakObjects = 0;
+  ExWindowStationObjectType->PeakHandles = 0;
   ExWindowStationObjectType->PagedPoolCharge = 0;
   ExWindowStationObjectType->NonpagedPoolCharge = sizeof(WINSTATION_OBJECT);
   ExWindowStationObjectType->Mapping = &ExpWindowStationMapping;
@@ -327,8 +327,8 @@
   ExDesktopObjectType->Tag = TAG('D', 'E', 'S', 'K');
   ExDesktopObjectType->TotalObjects = 0;
   ExDesktopObjectType->TotalHandles = 0;
-  ExDesktopObjectType->MaxObjects = ULONG_MAX;
-  ExDesktopObjectType->MaxHandles = ULONG_MAX;
+  ExDesktopObjectType->PeakObjects = 0;
+  ExDesktopObjectType->PeakHandles = 0;
   ExDesktopObjectType->PagedPoolCharge = 0;
   ExDesktopObjectType->NonpagedPoolCharge = sizeof(DESKTOP_OBJECT);
   ExDesktopObjectType->Mapping = &ExpDesktopMapping;

Modified: trunk/reactos/ntoskrnl/include/internal/ob.h
--- trunk/reactos/ntoskrnl/include/internal/ob.h	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/include/internal/ob.h	2005-01-04 04:45:00 UTC (rev 12779)
@@ -24,6 +24,162 @@
 
 typedef PVOID POBJECT;
 
+
+typedef struct _OBJECT_TYPE
+{
+  /*
+   * PURPOSE: Tag to be used when allocating objects of this type
+   */
+  ULONG Tag;
+
+  /*
+   * PURPOSE: Name of the type
+   */
+  UNICODE_STRING TypeName;
+  
+  /*
+   * PURPOSE: Total number of objects of this type
+   */
+  ULONG TotalObjects;
+  
+  /*
+   * PURPOSE: Total number of handles of this type
+   */
+  ULONG TotalHandles;
+  
+  /*
+   * PURPOSE: Peak objects of this type
+   */
+  ULONG PeakObjects;
+  
+   /*
+    * PURPOSE: Peak handles of this type
+    */
+  ULONG PeakHandles;
+  
+  /*
+   * PURPOSE: Paged pool charge
+   */
+   ULONG PagedPoolCharge;
+  
+  /*
+   * PURPOSE: Nonpaged pool charge
+   */
+  ULONG NonpagedPoolCharge;
+  
+  /*
+   * PURPOSE: Mapping of generic access rights
+   */
+  PGENERIC_MAPPING Mapping;
+  
+  /*
+   * PURPOSE: Dumps the object
+   * NOTE: To be defined
+   */
+  VOID STDCALL_FUNC (*Dump)(VOID);
+  
+  /*
+   * PURPOSE: Opens the object
+   * NOTE: To be defined
+   */
+  VOID STDCALL_FUNC (*Open)(VOID);
+  
+   /*
+    * PURPOSE: Called to close an object if OkayToClose returns true
+    */
+  VOID STDCALL_FUNC (*Close)(PVOID ObjectBody,
+         ULONG HandleCount);
+  
+  /*
+   * PURPOSE: Called to delete an object when the last reference is removed
+   */
+  VOID STDCALL_FUNC (*Delete)(PVOID ObjectBody);
+  
+  /*
+   * PURPOSE: Called when an open attempts to open a file apparently
+   * residing within the object
+   * RETURNS
+   *     STATUS_SUCCESS       NextObject was found
+   *     STATUS_UNSUCCESSFUL  NextObject not found
+   *     STATUS_REPARSE       Path changed, restart parsing the path
+   */
+   NTSTATUS STDCALL_FUNC (*Parse)(PVOID ParsedObject,
+              PVOID *NextObject,
+              PUNICODE_STRING FullPath,
+              PWSTR *Path,
+              ULONG Attributes);
+
+  /*
+   * PURPOSE: Called to set, query, delete or assign a security-descriptor
+   * to the object
+   * RETURNS
+   *     STATUS_SUCCESS       NextObject was found
+   */
+  NTSTATUS STDCALL_FUNC (*Security)(PVOID ObjectBody,
+                SECURITY_OPERATION_CODE OperationCode,
+                SECURITY_INFORMATION SecurityInformation,
+                PSECURITY_DESCRIPTOR SecurityDescriptor,
+                PULONG BufferLength);
+
+  /*
+   * PURPOSE: Called to query the name of the object
+   * RETURNS
+   *     STATUS_SUCCESS       NextObject was found
+   */
+  NTSTATUS STDCALL_FUNC (*QueryName)(PVOID ObjectBody,
+                 POBJECT_NAME_INFORMATION ObjectNameInfo,
+                 ULONG Length,
+                 PULONG ReturnLength);
+
+  /*
+   * PURPOSE: Called when a process asks to close the object
+   */
+  VOID STDCALL_FUNC (*OkayToClose)(VOID);
+
+  NTSTATUS STDCALL_FUNC (*Create)(PVOID ObjectBody,
+              PVOID Parent,
+              PWSTR RemainingPath,
+              struct _OBJECT_ATTRIBUTES* ObjectAttributes);
+
+  VOID STDCALL_FUNC (*DuplicationNotify)(PEPROCESS DuplicateTo,
+                PEPROCESS DuplicateFrom,
+                PVOID Object);
+} OBJECT_TYPE;
+
+
+
+typedef struct _OBJECT_HEADER
+/*
+ * PURPOSE: Header for every object managed by the object manager
+ */
+{
+   UNICODE_STRING Name;
+   LIST_ENTRY Entry;
+   LONG RefCount;
+   LONG HandleCount;
+   BOOLEAN CloseInProcess;
+   BOOLEAN Permanent;
+   BOOLEAN Inherit;
+   struct _DIRECTORY_OBJECT* Parent;
+   POBJECT_TYPE ObjectType;
+   PSECURITY_DESCRIPTOR SecurityDescriptor;
+   
+   /*
+    * PURPOSE: Object type
+    * NOTE: This overlaps the first member of the object body
+    */
+   CSHORT Type;
+   
+   /*
+    * PURPOSE: Object size
+    * NOTE: This overlaps the second member of the object body
+    */
+   CSHORT Size;
+   
+   
+} OBJECT_HEADER, *POBJECT_HEADER;
+
+
 typedef struct _DIRECTORY_OBJECT
 {
    CSHORT Type;

Modified: trunk/reactos/ntoskrnl/io/driver.c
--- trunk/reactos/ntoskrnl/io/driver.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/io/driver.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -97,8 +97,8 @@
    IoDriverObjectType->Tag = TAG('D', 'R', 'V', 'R');
    IoDriverObjectType->TotalObjects = 0;
    IoDriverObjectType->TotalHandles = 0;
-   IoDriverObjectType->MaxObjects = ULONG_MAX;
-   IoDriverObjectType->MaxHandles = ULONG_MAX;
+   IoDriverObjectType->PeakObjects = 0;
+   IoDriverObjectType->PeakHandles = 0;
    IoDriverObjectType->PagedPoolCharge = 0;
    IoDriverObjectType->NonpagedPoolCharge = sizeof(DRIVER_OBJECT);
    IoDriverObjectType->Dump = NULL;

Modified: trunk/reactos/ntoskrnl/io/iocomp.c
--- trunk/reactos/ntoskrnl/io/iocomp.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/io/iocomp.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -123,8 +123,8 @@
    RtlCreateUnicodeString(&ExIoCompletionType->TypeName, L"IoCompletion");
    
    ExIoCompletionType->Tag = IOC_TAG;
-   ExIoCompletionType->MaxObjects = ULONG_MAX;
-   ExIoCompletionType->MaxHandles = ULONG_MAX;
+   ExIoCompletionType->PeakObjects = 0;
+   ExIoCompletionType->PeakHandles = 0;
    ExIoCompletionType->TotalObjects = 0;
    ExIoCompletionType->TotalHandles = 0;
    ExIoCompletionType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/io/iomgr.c
--- trunk/reactos/ntoskrnl/io/iomgr.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/io/iomgr.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: iomgr.c,v 1.55 2004/12/21 18:37:28 gvg Exp $
+/* $Id$
  *
  * COPYRIGHT:            See COPYING in the top level directory
  * PROJECT:              ReactOS kernel
@@ -395,8 +395,8 @@
   IoDeviceObjectType->Tag = TAG_DEVICE_TYPE;
   IoDeviceObjectType->TotalObjects = 0;
   IoDeviceObjectType->TotalHandles = 0;
-  IoDeviceObjectType->MaxObjects = ULONG_MAX;
-  IoDeviceObjectType->MaxHandles = ULONG_MAX;
+  IoDeviceObjectType->PeakObjects = 0;
+  IoDeviceObjectType->PeakHandles = 0;
   IoDeviceObjectType->PagedPoolCharge = 0;
   IoDeviceObjectType->NonpagedPoolCharge = sizeof (DEVICE_OBJECT);
   IoDeviceObjectType->Mapping = &IopFileMapping;
@@ -424,8 +424,8 @@
   IoFileObjectType->Tag = TAG_FILE_TYPE;
   IoFileObjectType->TotalObjects = 0;
   IoFileObjectType->TotalHandles = 0;
-  IoFileObjectType->MaxObjects = ULONG_MAX;
-  IoFileObjectType->MaxHandles = ULONG_MAX;
+  IoFileObjectType->PeakObjects = 0;
+  IoFileObjectType->PeakHandles = 0;
   IoFileObjectType->PagedPoolCharge = 0;
   IoFileObjectType->NonpagedPoolCharge = sizeof(FILE_OBJECT);
   IoFileObjectType->Mapping = &IopFileMapping;
@@ -451,8 +451,8 @@
 				       sizeof (OBJECT_TYPE));
   RtlZeroMemory(IoAdapterObjectType, sizeof(OBJECT_TYPE));
   IoAdapterObjectType->Tag = TAG_ADAPTER_TYPE;
-  IoAdapterObjectType->MaxObjects = ULONG_MAX;
-  IoAdapterObjectType->MaxHandles = ULONG_MAX;
+  IoAdapterObjectType->PeakObjects = 0;
+  IoAdapterObjectType->PeakHandles = 0;
   IoDeviceObjectType->Mapping = &IopFileMapping;
   RtlRosInitUnicodeStringFromLiteral(&IoAdapterObjectType->TypeName, L"Adapter");
   ObpCreateTypeObject(IoAdapterObjectType);

Modified: trunk/reactos/ntoskrnl/lpc/port.c
--- trunk/reactos/ntoskrnl/lpc/port.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/lpc/port.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -44,8 +44,8 @@
     RtlRosInitUnicodeStringFromLiteral(&LpcPortObjectType->TypeName,L"Port");
    
    LpcPortObjectType->Tag = TAG('L', 'P', 'R', 'T');
-   LpcPortObjectType->MaxObjects = ULONG_MAX;
-   LpcPortObjectType->MaxHandles = ULONG_MAX;
+   LpcPortObjectType->PeakObjects = 0;
+   LpcPortObjectType->PeakHandles = 0;
    LpcPortObjectType->TotalObjects = 0;
    LpcPortObjectType->TotalHandles = 0;
    LpcPortObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/mm/section.c
--- trunk/reactos/ntoskrnl/mm/section.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/mm/section.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -2148,8 +2148,8 @@
    MmSectionObjectType->Tag = TAG('S', 'E', 'C', 'T');
    MmSectionObjectType->TotalObjects = 0;
    MmSectionObjectType->TotalHandles = 0;
-   MmSectionObjectType->MaxObjects = ULONG_MAX;
-   MmSectionObjectType->MaxHandles = ULONG_MAX;
+   MmSectionObjectType->PeakObjects = 0;
+   MmSectionObjectType->PeakHandles = 0;
    MmSectionObjectType->PagedPoolCharge = 0;
    MmSectionObjectType->NonpagedPoolCharge = sizeof(SECTION_OBJECT);
    MmSectionObjectType->Mapping = &MmpSectionMapping;

Modified: trunk/reactos/ntoskrnl/nt/evtpair.c
--- trunk/reactos/ntoskrnl/nt/evtpair.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/evtpair.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: evtpair.c,v 1.23 2004/09/28 15:02:29 weiden Exp $
+/* $Id$
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -66,8 +66,8 @@
    
    RtlCreateUnicodeString(&ExEventPairObjectType->TypeName, L"EventPair");
    ExEventPairObjectType->Tag = TAG('E', 'v', 'P', 'a');
-   ExEventPairObjectType->MaxObjects = ULONG_MAX;
-   ExEventPairObjectType->MaxHandles = ULONG_MAX;
+   ExEventPairObjectType->PeakObjects = 0;
+   ExEventPairObjectType->PeakHandles = 0;
    ExEventPairObjectType->TotalObjects = 0;
    ExEventPairObjectType->TotalHandles = 0;
    ExEventPairObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/nt/mutant.c
--- trunk/reactos/ntoskrnl/nt/mutant.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/mutant.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -81,8 +81,8 @@
   RtlCreateUnicodeString(&ExMutantObjectType->TypeName, L"Mutant");
 
   ExMutantObjectType->Tag = TAG('M', 'T', 'N', 'T');
-  ExMutantObjectType->MaxObjects = ULONG_MAX;
-  ExMutantObjectType->MaxHandles = ULONG_MAX;
+  ExMutantObjectType->PeakObjects = 0;
+  ExMutantObjectType->PeakHandles = 0;
   ExMutantObjectType->TotalObjects = 0;
   ExMutantObjectType->TotalHandles = 0;
   ExMutantObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/nt/ntevent.c
--- trunk/reactos/ntoskrnl/nt/ntevent.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/ntevent.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -70,8 +70,8 @@
    RtlCreateUnicodeString(&ExEventObjectType->TypeName, L"Event");
    
    ExEventObjectType->Tag = TAG('E', 'V', 'T', 'T');
-   ExEventObjectType->MaxObjects = ULONG_MAX;
-   ExEventObjectType->MaxHandles = ULONG_MAX;
+   ExEventObjectType->PeakObjects = 0;
+   ExEventObjectType->PeakHandles = 0;
    ExEventObjectType->TotalObjects = 0;
    ExEventObjectType->TotalHandles = 0;
    ExEventObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/nt/ntsem.c
--- trunk/reactos/ntoskrnl/nt/ntsem.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/ntsem.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: ntsem.c,v 1.24 2004/12/26 17:48:19 navaraf Exp $
+/* $Id$
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -52,8 +52,8 @@
    RtlCreateUnicodeString(&ExSemaphoreObjectType->TypeName, L"Semaphore");
    
    ExSemaphoreObjectType->Tag = TAG('S', 'E', 'M', 'T');
-   ExSemaphoreObjectType->MaxObjects = ULONG_MAX;
-   ExSemaphoreObjectType->MaxHandles = ULONG_MAX;
+   ExSemaphoreObjectType->PeakObjects = 0;
+   ExSemaphoreObjectType->PeakHandles = 0;
    ExSemaphoreObjectType->TotalObjects = 0;
    ExSemaphoreObjectType->TotalHandles = 0;
    ExSemaphoreObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/nt/nttimer.c
--- trunk/reactos/ntoskrnl/nt/nttimer.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/nttimer.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: nttimer.c,v 1.26 2004/10/24 16:49:49 weiden Exp $
+/* $Id$
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -119,8 +119,8 @@
    RtlCreateUnicodeString(&ExTimerType->TypeName, L"Timer");
 
    ExTimerType->Tag = TAG('T', 'I', 'M', 'T');
-   ExTimerType->MaxObjects = ULONG_MAX;
-   ExTimerType->MaxHandles = ULONG_MAX;
+   ExTimerType->PeakObjects = 0;
+   ExTimerType->PeakHandles = 0;
    ExTimerType->TotalObjects = 0;
    ExTimerType->TotalHandles = 0;
    ExTimerType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/nt/profile.c
--- trunk/reactos/ntoskrnl/nt/profile.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/nt/profile.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -371,8 +371,8 @@
   RtlCreateUnicodeString(&ExProfileObjectType->TypeName, L"Profile");
   
   ExProfileObjectType->Tag = TAG('P', 'R', 'O', 'F');
-  ExProfileObjectType->MaxObjects = ULONG_MAX;
-  ExProfileObjectType->MaxHandles = ULONG_MAX;
+  ExProfileObjectType->PeakObjects = 0;
+  ExProfileObjectType->PeakHandles = 0;
   ExProfileObjectType->TotalObjects = 0;
   ExProfileObjectType->TotalHandles = 0;
   ExProfileObjectType->PagedPoolCharge = 0;

Modified: trunk/reactos/ntoskrnl/ob/namespc.c
--- trunk/reactos/ntoskrnl/ob/namespc.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ob/namespc.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: namespc.c,v 1.50 2004/11/21 10:59:10 weiden Exp $
+/* $Id$
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
@@ -376,8 +376,8 @@
   ObDirectoryType->Tag = TAG('D', 'I', 'R', 'T');
   ObDirectoryType->TotalObjects = 0;
   ObDirectoryType->TotalHandles = 0;
-  ObDirectoryType->MaxObjects = ULONG_MAX;
-  ObDirectoryType->MaxHandles = ULONG_MAX;
+  ObDirectoryType->PeakObjects = 0;
+  ObDirectoryType->PeakHandles = 0;
   ObDirectoryType->PagedPoolCharge = 0;
   ObDirectoryType->NonpagedPoolCharge = sizeof(DIRECTORY_OBJECT);
   ObDirectoryType->Mapping = &ObpDirectoryMapping;
@@ -401,8 +401,8 @@
   ObTypeObjectType->Tag = TAG('T', 'y', 'p', 'T');
   ObTypeObjectType->TotalObjects = 0;
   ObTypeObjectType->TotalHandles = 0;
-  ObTypeObjectType->MaxObjects = ULONG_MAX;
-  ObTypeObjectType->MaxHandles = ULONG_MAX;
+  ObTypeObjectType->PeakObjects = 0;
+  ObTypeObjectType->PeakHandles = 0;
   ObTypeObjectType->PagedPoolCharge = 0;
   ObTypeObjectType->NonpagedPoolCharge = sizeof(TYPE_OBJECT);
   ObTypeObjectType->Mapping = &ObpTypeMapping;

Modified: trunk/reactos/ntoskrnl/ob/symlink.c
--- trunk/reactos/ntoskrnl/ob/symlink.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ob/symlink.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -1,4 +1,4 @@
-/* $Id: symlink.c,v 1.12 2004/10/25 14:22:21 blight Exp $
+/* $Id$
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -165,8 +165,8 @@
   ObSymbolicLinkType->Tag = TAG('S', 'Y', 'M', 'T');
   ObSymbolicLinkType->TotalObjects = 0;
   ObSymbolicLinkType->TotalHandles = 0;
-  ObSymbolicLinkType->MaxObjects = ULONG_MAX;
-  ObSymbolicLinkType->MaxHandles = ULONG_MAX;
+  ObSymbolicLinkType->PeakObjects = 0;
+  ObSymbolicLinkType->PeakHandles = 0;
   ObSymbolicLinkType->PagedPoolCharge = 0;
   ObSymbolicLinkType->NonpagedPoolCharge = sizeof(SYMLINK_OBJECT);
   ObSymbolicLinkType->Mapping = &ObpSymbolicLinkMapping;

Modified: trunk/reactos/ntoskrnl/ps/job.c
--- trunk/reactos/ntoskrnl/ps/job.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ps/job.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -47,8 +47,8 @@
   PsJobType->Tag = TAG('E', 'J', 'O', 'B');
   PsJobType->TotalObjects = 0;
   PsJobType->TotalHandles = 0;
-  PsJobType->MaxObjects = ULONG_MAX;
-  PsJobType->MaxHandles = ULONG_MAX;
+  PsJobType->PeakObjects = 0;
+  PsJobType->PeakHandles = 0;
   PsJobType->PagedPoolCharge = 0;
   PsJobType->NonpagedPoolCharge = sizeof(EJOB);
   PsJobType->Mapping = &PiJobMapping;

Modified: trunk/reactos/ntoskrnl/ps/process.c
--- trunk/reactos/ntoskrnl/ps/process.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ps/process.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -258,8 +258,8 @@
    PsProcessType->Tag = TAG('P', 'R', 'O', 'C');
    PsProcessType->TotalObjects = 0;
    PsProcessType->TotalHandles = 0;
-   PsProcessType->MaxObjects = ULONG_MAX;
-   PsProcessType->MaxHandles = ULONG_MAX;
+   PsProcessType->PeakObjects = 0;
+   PsProcessType->PeakHandles = 0;
    PsProcessType->PagedPoolCharge = 0;
    PsProcessType->NonpagedPoolCharge = sizeof(EPROCESS);
    PsProcessType->Mapping = &PiProcessMapping;

Modified: trunk/reactos/ntoskrnl/ps/thread.c
--- trunk/reactos/ntoskrnl/ps/thread.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/ps/thread.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -684,8 +684,8 @@
    PsThreadType->Tag = TAG('T', 'H', 'R', 'T');
    PsThreadType->TotalObjects = 0;
    PsThreadType->TotalHandles = 0;
-   PsThreadType->MaxObjects = 0;
-   PsThreadType->MaxHandles = 0;
+   PsThreadType->PeakObjects = 0;
+   PsThreadType->PeakHandles = 0;
    PsThreadType->PagedPoolCharge = 0;
    PsThreadType->NonpagedPoolCharge = sizeof(ETHREAD);
    PsThreadType->Mapping = &PiThreadMapping;

Modified: trunk/reactos/ntoskrnl/se/token.c
--- trunk/reactos/ntoskrnl/se/token.c	2005-01-04 04:09:04 UTC (rev 12778)
+++ trunk/reactos/ntoskrnl/se/token.c	2005-01-04 04:45:00 UTC (rev 12779)
@@ -538,8 +538,8 @@
   SepTokenObjectType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
 
   SepTokenObjectType->Tag = TAG('T', 'O', 'K', 'T');
-  SepTokenObjectType->MaxObjects = ULONG_MAX;
-  SepTokenObjectType->MaxHandles = ULONG_MAX;
+  SepTokenObjectType->PeakObjects = 0;
+  SepTokenObjectType->PeakHandles = 0;
   SepTokenObjectType->TotalObjects = 0;
   SepTokenObjectType->TotalHandles = 0;
   SepTokenObjectType->PagedPoolCharge = 0;