Added undocumented function RtlOpenCurrentUser.
This commit is contained in:
parent
73d6c134c2
commit
828537111a
13
misc/ntdll.c
13
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]
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue