From 2691c6bc927b32a8d1e3fbc33d336bbecd5bfee9 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 24 May 2007 08:59:34 +0000 Subject: [PATCH] - Add tracing DPRINTs to all public APIs. svn path=/trunk/; revision=26878 --- reactos/ntoskrnl/cm/ntfunc.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/reactos/ntoskrnl/cm/ntfunc.c b/reactos/ntoskrnl/cm/ntfunc.c index d4a44199d3c..ee9db5ddbc8 100644 --- a/reactos/ntoskrnl/cm/ntfunc.c +++ b/reactos/ntoskrnl/cm/ntfunc.c @@ -155,6 +155,10 @@ NtCreateKey(OUT PHANDLE KeyHandle, PAGED_CODE(); + DPRINT("NtCreateKey(TI 0x%x, DA 0x%x, Class '%wZ', OA 0x%p, OA->ON '%wZ'\n", + TitleIndex, DesiredAccess, Class, ObjectAttributes, + ObjectAttributes ? ObjectAttributes->ObjectName : NULL); + PreviousMode = ExGetPreviousMode(); if (PreviousMode != KernelMode) @@ -713,6 +717,8 @@ NtDeleteKey(IN HANDLE KeyHandle) REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtDeleteKey(KH 0x%p)\n", KeyHandle); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, DELETE, @@ -764,6 +770,9 @@ NtEnumerateKey(IN HANDLE KeyHandle, REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtEnumerateKey() KH 0x%x, Index 0x%x, KIC %d, Length %d\n", + KeyHandle, Index, KeyInformationClass, Length); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, (KeyInformationClass != @@ -820,6 +829,9 @@ NtEnumerateValueKey(IN HANDLE KeyHandle, REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtEnumerateValueKey() KH 0x%x, Index 0x%x, KVIC %d, Length %d\n", + KeyHandle, Index, KeyValueInformationClass, Length); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, KEY_QUERY_VALUE, @@ -874,6 +886,9 @@ NtQueryKey(IN HANDLE KeyHandle, REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtQueryKey() KH 0x%x, KIC %d, Length %d\n", + KeyHandle, KeyInformationClass, Length); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, (KeyInformationClass != @@ -929,6 +944,9 @@ NtQueryValueKey(IN HANDLE KeyHandle, REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtQueryValueKey() KH 0x%x, VN '%wZ', KVIC %d, Length %d\n", + KeyHandle, ValueName, KeyValueInformationClass, Length); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, KEY_QUERY_VALUE, @@ -983,6 +1001,9 @@ NtSetValueKey(IN HANDLE KeyHandle, REG_POST_OPERATION_INFORMATION PostOperationInfo; PAGED_CODE(); + DPRINT("NtSetValueKey() KH 0x%x, VN '%wZ', TI %x, T %d, DS %d\n", + KeyHandle, ValueName, TitleIndex, Type, DataSize); + /* Verify that the handle is valid and is a registry key */ Status = ObReferenceObjectByHandle(KeyHandle, KEY_SET_VALUE,