From: short <> Date: Mon, 10 Nov 2003 20:24:57 +0000 (+0000) Subject: RtlQueryRegistryValues(): Debug dump parameters. X-Git-Tag: captive-1_1~29 X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=bfe0b4081b4fd9003a70ac3729c71d699d15cc56 RtlQueryRegistryValues(): Debug dump parameters. --- diff --git a/src/libcaptive/cm/rtlfunc.c b/src/libcaptive/cm/rtlfunc.c index e444a0b..62f4128 100644 --- a/src/libcaptive/cm/rtlfunc.c +++ b/src/libcaptive/cm/rtlfunc.c @@ -22,6 +22,7 @@ #include "reactos/ddk/kefuncs.h" /* self */ #include #include "captive/unicode.h" +#include "captive/macros.h" /** @@ -47,10 +48,28 @@ const WCHAR *Path__captive_filesystem_Parameters_ucs2= captive_utf8_to_UnicodeString_alloca("\\captive\\filesystem\\Parameters")->Buffer; const WCHAR *QueryTable_WritingSupport_Name_ucs2= captive_utf8_to_UnicodeString_alloca("WritingSupport")->Buffer; +const gchar *RelativeTo_table[]={ + "RTL_REGISTRY_ABSOLUTE", + "RTL_REGISTRY_SERVICES", + "RTL_REGISTRY_CONTROL", + "RTL_REGISTRY_WINDOWS_NT", + "RTL_REGISTRY_DEVICEMAP", + "RTL_REGISTRY_USER", + "RTL_REGISTRY_ENUM", + }; +UNICODE_STRING Path_UnicodeString; g_return_val_if_fail(Path!=NULL,STATUS_INVALID_PARAMETER); g_return_val_if_fail(QueryTable!=NULL,STATUS_INVALID_PARAMETER); - + + Path_UnicodeString.Length=captive_ucs2_strlen(Path)*sizeof(*Path_UnicodeString.Buffer); + Path_UnicodeString.MaximumLength=Path_UnicodeString.Length+sizeof(*Path_UnicodeString.Buffer); + Path_UnicodeString.Buffer=(/* de-const */ PWSTR)Path; + g_log(G_LOG_DOMAIN,G_LOG_LEVEL_DEBUG,"%s: RelativeTo=%s,Path=%s",G_STRLOC, + (RelativeTo>=0 && RelativeTo