-/* $Id: namespc.c,v 1.34 2002/09/08 10:23:39 chorns Exp $
+/* $Id: namespc.c,v 1.35 2002/11/10 13:36:15 robd Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ***************************************************************/
+#ifdef WIN32_REGDBG
+#include "cm_win32.h"
+#else
+
#include <limits.h>
#include <ddk/ntddk.h>
#include <internal/ob.h>
#define NDEBUG
#include <internal/debug.h>
+#endif
+
/* GLOBALS ****************************************************************/
POBJECT_TYPE ObDirectoryType = NULL;
0x000F0001};
/* FUNCTIONS **************************************************************/
-
+#ifndef WIN32_REGDBG
NTSTATUS STDCALL
ObReferenceObjectByName(PUNICODE_STRING ObjectPath,
ULONG Attributes,
RtlFreeUnicodeString (&RemainingPath);
return(STATUS_SUCCESS);
}
-
+#endif // WIN32_REGDBG
/**********************************************************************
* NAME EXPORTED
PVOID Object = NULL;
NTSTATUS Status;
- DPRINT("ObOpenObjectByName()\n");
+ DPRINT("ObOpenObjectByName(...)\n");
Status = ObFindObject(ObjectAttributes,
&Object,
while (current!=(&(DirectoryObject->head)))
{
current_obj = CONTAINING_RECORD(current,OBJECT_HEADER,Entry);
- DPRINT("Scanning %S %S\n",current_obj->Name.Buffer, Name);
+ DPRINT(" Scanning: %S for: %S\n",current_obj->Name.Buffer, Name);
if (Attributes & OBJ_CASE_INSENSITIVE)
{
if (_wcsicmp(current_obj->Name.Buffer, Name)==0)
}
current = current->Flink;
}
- DPRINT("%s() = NULL\n",__FUNCTION__);
+ DPRINT(" Not Found: %s() = NULL\n",__FUNCTION__);
return(NULL);
}
UNICODE_STRING Name;
NTSTATUS Status;
- DPRINT("ObjectType: %wZ\n", &ObjectType->TypeName);
+ DPRINT("ObpCreateTypeObject(ObjectType: %wZ)\n", &ObjectType->TypeName);
wcscpy(NameString, L"\\ObjectTypes\\");
wcscat(NameString, ObjectType->TypeName.Buffer);
RtlInitUnicodeString(&Name,