Commit 82853711 authored by Dietmar Kling's avatar Dietmar Kling Committed by Alexandre Julliard

Added undocumented function RtlOpenCurrentUser.

parent 73d6c134
......@@ -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]
*
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment