Added undocumented function RtlOpenCurrentUser.

This commit is contained in:
Dietmar Kling 1998-10-16 14:28:45 +00:00 committed by Alexandre Julliard
parent 73d6c134c2
commit 828537111a
2 changed files with 14 additions and 1 deletions

View File

@ -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]
*

View File

@ -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