* UPDATE HISTORY:
*/
+#ifdef WIN32_REGDBG
+#include "cm_win32.h"
+#else
#include <ddk/ntddk.h>
#include <roscfg.h>
#include <internal/ob.h>
#include <internal/debug.h>
#include "cm.h"
+#endif
static NTSTATUS
}
/* Create new key object and put into linked list */
- DPRINT("CmiObjectParse %s\n", cPath);
+ DPRINT("CmiObjectParse: %s\n", cPath);
Status = ObCreateObject(NULL,
STANDARD_RIGHTS_REQUIRED,
NULL,
NULL,
UserMode);
}
-
- DPRINT("CmiObjectParse %s\n", FoundObject->Name);
+#ifndef WIN32_REGDBG
+ DPRINT("CmiObjectParse: %s\n", FoundObject->Name);
+#else
+ {
+ char buffer[_BUFFER_LEN];
+ memset(buffer, 0, _BUFFER_LEN);
+ strncpy(buffer, FoundObject->Name, min(FoundObject->NameSize, _BUFFER_LEN - 1));
+ DPRINT("CmiObjectParse: %s\n", buffer);
+ }
+#endif
if (end != NULL)
{
WORD NameSize;
DWORD Index;
- DPRINT("Scanning key list for %s (Parent %s)\n",
+#ifndef WIN32_REGDBG
+ DPRINT("Scanning key list for: %s (Parent: %s)\n",
KeyName, Parent->Name);
+#else
+ {
+ char buffer[_BUFFER_LEN];
+ memset(buffer, 0, _BUFFER_LEN);
+ strncpy(buffer, Parent->Name, min(Parent->NameSize, _BUFFER_LEN - 1));
+ DPRINT("Scanning key list for: %s (Parent: %s)\n", KeyName, buffer);
+ }
+#endif
NameSize = strlen(KeyName);
KeAcquireSpinLock(&CmiKeyListLock, &OldIrql);