Partially implement RegOpenUserClassesRoot.

This commit is contained in:
Robert Shearman 2004-01-16 04:40:33 +00:00 committed by Alexandre Julliard
parent 4d35cd2dde
commit 65e818272b
2 changed files with 29 additions and 1 deletions

View File

@ -218,7 +218,7 @@
@ stdcall RegOpenKeyExA(long str long long ptr)
@ stdcall RegOpenKeyExW(long wstr long long ptr)
@ stdcall RegOpenKeyW(long wstr ptr)
@ stub RegOpenUserClassesRoot
@ stdcall RegOpenUserClassesRoot(ptr long long ptr)
@ stdcall RegQueryInfoKeyA(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
@ stdcall RegQueryInfoKeyW(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
@ stdcall RegQueryMultipleValuesA(long ptr long ptr ptr)

View File

@ -1917,3 +1917,31 @@ LONG WINAPI RegNotifyChangeKeyValue( HKEY hkey, BOOL fWatchSubTree,
return ret;
}
/******************************************************************************
* RegOpenUserClassesRoot [ADVAPI32.@]
* Opens the HKEY_CLASSES_ROOT key for the user represented by the token
*
* PARAMS
* hToken [I] Handle of token representing user
* dwOptions [I] Reserved
* samDesired [I] Desired access rights
* phkResult [O] Address of buffer for opened handle
*
* NOTES:
* On Windows 2000 and upwards the HKEY_CLASSES_ROOT key is a view of the
* HKEY_LOCAL_MACHINE\Software\Classes and the
* HKEY_CURRENT_USER\Software\Classes keys merged together.
*/
LONG WINAPI RegOpenUserClassesRoot(
HANDLE hToken,
DWORD dwOptions,
REGSAM samDesired,
PHKEY phkResult
)
{
FIXME("(%p, 0x%lx, 0x%lx, %p) semi-stub\n", hToken, dwOptions, samDesired, phkResult);
*phkResult = HKEY_CLASSES_ROOT;
return ERROR_SUCCESS;
}