From 828537111a161c37edfac37811df85a56a679fb9 Mon Sep 17 00:00:00 2001 From: Dietmar Kling Date: Fri, 16 Oct 1998 14:28:45 +0000 Subject: [PATCH] Added undocumented function RtlOpenCurrentUser. --- misc/ntdll.c | 13 +++++++++++++ relay32/ntdll.spec | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/misc/ntdll.c b/misc/ntdll.c index 026679e28a0..a69ab27fab4 100644 --- a/misc/ntdll.c +++ b/misc/ntdll.c @@ -18,6 +18,7 @@ #include "module.h" #include "heap.h" #include "debugstr.h" +#include "winreg.h" /************************************************************************** * RtlLengthRequiredSid [NTDLL.427] @@ -823,6 +824,18 @@ DWORD WINAPI RtlFormatCurrentUserKeyPath() FIXME(ntdll,"(): stub\n"); return 1; } +DWORD WINAPI RtlOpenCurrentUser(DWORD x1, DWORD *x2) +{ +/* Note: this is not the correct solution, + * But this works pretty good on wine and NT4.0 binaries + */ + if ( x1 == 0x2000000 ) { + *x2 = HKEY_CURRENT_USER; + return TRUE; + } + + return FALSE; +} /****************************************************************************** * RtlAllocateAndInitializeSid [NTDLL.265] * diff --git a/relay32/ntdll.spec b/relay32/ntdll.spec index 0e8ebc40a84..f19cd1aa4e6 100644 --- a/relay32/ntdll.spec +++ b/relay32/ntdll.spec @@ -449,7 +449,7 @@ type win32 446 stub RtlOemStringToUnicodeSize 447 stdcall RtlOemStringToUnicodeString(ptr ptr long) RtlOemStringToUnicodeString 448 stdcall RtlOemToUnicodeN(ptr long ptr ptr long) RtlOemToUnicodeN -449 stub RtlOpenCurrentUser +449 stdcall RtlOpenCurrentUser(long ptr) RtlOpenCurrentUser 450 stub RtlPcToFileHeader 451 stub RtlPrefixString 452 stub RtlPrefixUnicodeString