-/* $Id: registry.c,v 1.108 2003/09/25 20:03:11 ekohl Exp $
+/* $Id: registry.c,v 1.109 2003/10/07 14:08:43 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
CmiKeyType->DuplicationNotify = NULL;
RtlInitUnicodeString(&CmiKeyType->TypeName, L"Key");
+ ObpCreateTypeObject (CmiKeyType);
+
/* Initialize the hive list */
InitializeListHead(&CmiHiveListHead);
ExInitializeResourceLite(&CmiHiveListLock);
#include <limits.h>
#include <ddk/ntddk.h>
#include <internal/ex.h>
+#include <internal/ob.h>
#include <wchar.h>
#define NDEBUG
ExWindowStationObjectType->DuplicationNotify = NULL;
RtlInitUnicodeStringFromLiteral(&ExWindowStationObjectType->TypeName, L"WindowStation");
+ ObpCreateTypeObject(ExWindowStationObjectType);
+
/* Create desktop object type */
ExDesktopObjectType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
if (ExDesktopObjectType == NULL)
ExDesktopObjectType->Create = ExpDesktopObjectCreate;
ExDesktopObjectType->DuplicationNotify = NULL;
RtlInitUnicodeStringFromLiteral(&ExDesktopObjectType->TypeName, L"Desktop");
+
+ ObpCreateTypeObject(ExDesktopObjectType);
}
/* EOF */
-/* $Id: driver.c,v 1.21 2003/10/06 18:49:50 navaraf Exp $
+/* $Id: driver.c,v 1.22 2003/10/07 13:58:53 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
IoDriverObjectType->Create = IopCreateDriver;
IoDriverObjectType->DuplicationNotify = NULL;
RtlInitUnicodeStringFromLiteral(&IoDriverObjectType->TypeName, L"Driver");
+
+ ObpCreateTypeObject(IoDriverObjectType);
}
/**********************************************************************
-/* $Id: iomgr.c,v 1.38 2003/09/29 20:43:07 navaraf Exp $
+/* $Id: iomgr.c,v 1.39 2003/10/07 13:58:53 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
RtlInitUnicodeStringFromLiteral(&IoDeviceObjectType->TypeName, L"Device");
+ ObpCreateTypeObject(IoDeviceObjectType);
+
/*
* Register iomgr types: FileObjectType
* (alias DriverObjectType)
RtlInitUnicodeStringFromLiteral(&IoFileObjectType->TypeName, L"File");
+ ObpCreateTypeObject(IoFileObjectType);
+
/*
* Create the '\Driver' object directory
*/
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: section.c,v 1.128 2003/09/25 20:05:44 ekohl Exp $
+/* $Id: section.c,v 1.129 2003/10/07 14:00:10 ekohl Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c
MmSectionObjectType->Create = MmpCreateSection;
MmSectionObjectType->DuplicationNotify = NULL;
+ /*
+ * NOTE: Do not register the section object type here because
+ * the object manager it not initialized yet!
+ * The section object type will be created in ObInit().
+ */
+
return(STATUS_SUCCESS);
}
-/* $Id: evtpair.c,v 1.17 2003/09/25 20:06:32 ekohl Exp $
+/* $Id: evtpair.c,v 1.18 2003/10/07 14:00:45 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#define NTOS_MODE_KERNEL
#include <ntos.h>
#include <ntos/synch.h>
+#include <internal/ob.h>
#include <internal/ps.h>
#include <limits.h>
ExEventPairObjectType->DuplicationNotify = NULL;
KeInitializeSpinLock(&ExThreadEventPairSpinLock);
+ ObpCreateTypeObject(ExEventPairObjectType);
}
#define NTOS_MODE_KERNEL
#include <ntos.h>
#include <ntos/synch.h>
+#include <internal/ob.h>
#define NDEBUG
#include <internal/debug.h>
ExMutantObjectType->OkayToClose = NULL;
ExMutantObjectType->Create = NtpCreateMutant;
ExMutantObjectType->DuplicationNotify = NULL;
+
+ ObpCreateTypeObject(ExMutantObjectType);
}
#define NTOS_MODE_KERNEL
#include <ntos.h>
#include <internal/id.h>
+#include <internal/ob.h>
#include <ntos/synch.h>
#include <internal/pool.h>
#include <internal/safe.h>
ExEventObjectType->OkayToClose = NULL;
ExEventObjectType->Create = NtpCreateEvent;
ExEventObjectType->DuplicationNotify = NULL;
+
+ ObpCreateTypeObject(ExEventObjectType);
}
-/* $Id: ntsem.c,v 1.19 2003/09/25 20:06:32 ekohl Exp $
+/* $Id: ntsem.c,v 1.20 2003/10/07 14:00:45 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#define NTOS_MODE_KERNEL
#include <ntos.h>
#include <ntos/synch.h>
+#include <internal/ob.h>
#include <internal/pool.h>
#include <internal/ps.h>
ExSemaphoreType->OkayToClose = NULL;
ExSemaphoreType->Create = NtpCreateSemaphore;
ExSemaphoreType->DuplicationNotify = NULL;
+
+ ObpCreateTypeObject(ExSemaphoreType);
}
NTSTATUS STDCALL
-/* $Id: nttimer.c,v 1.20 2003/09/25 20:06:32 ekohl Exp $
+/* $Id: nttimer.c,v 1.21 2003/10/07 14:00:45 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#include <ntos.h>
#include <ntos/synch.h>
#include <internal/ke.h>
+#include <internal/ob.h>
#include <limits.h>
#include <internal/pool.h>
#include <internal/safe.h>
ExTimerType->OkayToClose = NULL;
ExTimerType->Create = NtpCreateTimer;
ExTimerType->DuplicationNotify = NULL;
+
+ ObpCreateTypeObject(ExTimerType);
}
#define NTOS_MODE_KERNEL
#include <ntos.h>
#include <internal/mm.h>
+#include <internal/ob.h>
#include <internal/ps.h>
#include <internal/pool.h>
#include <limits.h>
ExProfileObjectType->QueryName = NULL;
ExProfileObjectType->OkayToClose = NULL;
ExProfileObjectType->Create = NULL;
+
+ ObpCreateTypeObject(ExProfileObjectType);
}
NTSTATUS STDCALL
-/* $Id: namespc.c,v 1.40 2003/09/25 20:07:46 ekohl Exp $
+/* $Id: namespc.c,v 1.41 2003/10/07 14:01:15 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* Create 'symbolic link' object type */
ObInitSymbolicLinkImplementation();
+
+ /* Create 'section' object type */
+ ObpCreateTypeObject(MmSectionObjectType);
}
-/* $Id: process.c,v 1.117 2003/10/04 18:19:17 navaraf Exp $
+/* $Id: process.c,v 1.118 2003/10/07 14:01:57 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
RtlInitUnicodeStringFromLiteral(&PsProcessType->TypeName, L"Process");
+ ObpCreateTypeObject(PsProcessType);
+
InitializeListHead(&PsProcessListHead);
KeInitializeSpinLock(&PsProcessListLock);
-/* $Id: thread.c,v 1.118 2003/09/30 22:36:29 gvg Exp $
+/* $Id: thread.c,v 1.119 2003/10/07 14:01:57 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
PsThreadType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
- RtlInitUnicodeStringFromLiteral(&PsThreadType->TypeName, L"Thread");
-
PsThreadType->Tag = TAG('T', 'H', 'R', 'T');
PsThreadType->TotalObjects = 0;
PsThreadType->TotalHandles = 0;
PsThreadType->Create = NULL;
PsThreadType->DuplicationNotify = NULL;
+ RtlInitUnicodeStringFromLiteral(&PsThreadType->TypeName, L"Thread");
+
+ ObpCreateTypeObject(PsThreadType);
+
PsInitializeThread(NULL,&FirstThread,&FirstThreadHandle,
THREAD_ALL_ACCESS,NULL, TRUE);
FirstThread->Tcb.State = THREAD_STATE_RUNNING;
-/* $Id: token.c,v 1.27 2003/09/25 20:09:11 ekohl Exp $
+/* $Id: token.c,v 1.28 2003/10/07 14:04:52 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#include <limits.h>
#define NTOS_MODE_KERNEL
#include <ntos.h>
+#include <internal/ob.h>
#include <internal/ps.h>
#include <internal/se.h>
#include <internal/safe.h>
RtlCreateUnicodeString(&SepTokenObjectType->TypeName,
L"Token");
+ ObpCreateTypeObject (SepTokenObjectType);
}