1999-11-23 19:41:34 +00:00
|
|
|
/*
|
|
|
|
* Registry management
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Alexandre Julliard
|
2018-07-11 04:16:07 +00:00
|
|
|
* Copyright (C) 2017 Dmitry Timoshkov
|
1999-11-23 19:41:34 +00:00
|
|
|
*
|
|
|
|
* Based on misc/registry.c code
|
|
|
|
* Copyright (C) 1996 Marcus Meissner
|
|
|
|
* Copyright (C) 1998 Matthew Becker
|
|
|
|
* Copyright (C) 1999 Sylvain St-Germain
|
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
2000-02-10 22:15:21 +00:00
|
|
|
#include <stdio.h>
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2005-11-28 16:32:54 +00:00
|
|
|
#include "ntstatus.h"
|
|
|
|
#define WIN32_NO_STATUS
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "windef.h"
|
1999-11-23 19:41:34 +00:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "winreg.h"
|
|
|
|
#include "winerror.h"
|
2005-05-16 14:08:11 +00:00
|
|
|
#include "winternl.h"
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
2019-05-26 12:15:11 +00:00
|
|
|
#include "wine/list.h"
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(reg);
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
NTSTATUS WINAPI RemapPredefinedHandleInternal( HKEY hkey, HKEY override );
|
|
|
|
NTSTATUS WINAPI DisablePredefinedHandleTableInternal( HKEY hkey );
|
2002-09-13 21:42:28 +00:00
|
|
|
|
2002-05-09 19:39:10 +00:00
|
|
|
|
2008-03-11 18:48:57 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegOverridePredefKey [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
LSTATUS WINAPI RegOverridePredefKey( HKEY hkey, HKEY override )
|
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RtlNtStatusToDosError( RemapPredefinedHandleInternal( hkey, override ));
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2004-07-13 23:33:14 +00:00
|
|
|
* RegCreateKeyW [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* Creates the specified reg key.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hKey [I] Handle to an open key.
|
|
|
|
* lpSubKey [I] Name of a key that will be opened or created.
|
|
|
|
* phkResult [O] Receives a handle to the opened or created key.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code defined in Winerror.h
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegCreateKeyW( HKEY hkey, LPCWSTR lpSubKey, PHKEY phkResult )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2004-07-13 23:33:14 +00:00
|
|
|
return RegCreateKeyExW( hkey, lpSubKey, 0, NULL, REG_OPTION_NON_VOLATILE,
|
2009-12-04 15:07:27 +00:00
|
|
|
MAXIMUM_ALLOWED, NULL, phkResult, NULL );
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2004-07-13 23:33:14 +00:00
|
|
|
* RegCreateKeyA [ADVAPI32.@]
|
|
|
|
*
|
2005-11-04 11:43:27 +00:00
|
|
|
* See RegCreateKeyW.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegCreateKeyA( HKEY hkey, LPCSTR lpSubKey, PHKEY phkResult )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2004-07-13 23:33:14 +00:00
|
|
|
return RegCreateKeyExA( hkey, lpSubKey, 0, NULL, REG_OPTION_NON_VOLATILE,
|
2009-12-04 15:07:27 +00:00
|
|
|
MAXIMUM_ALLOWED, NULL, phkResult, NULL );
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-12-23 16:18:38 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegCreateKeyTransactedW [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
LSTATUS WINAPI RegCreateKeyTransactedW( HKEY hkey, LPCWSTR name, DWORD reserved, LPWSTR class,
|
|
|
|
DWORD options, REGSAM access, SECURITY_ATTRIBUTES *sa,
|
|
|
|
PHKEY retkey, LPDWORD dispos, HANDLE transaction, PVOID reserved2 )
|
|
|
|
{
|
2022-02-07 22:10:27 +00:00
|
|
|
FIXME( "(%p,%s,%lu,%s,%lu,%lu,%p,%p,%p,%p,%p): stub\n", hkey, debugstr_w(name), reserved,
|
2015-12-23 16:18:38 +00:00
|
|
|
debugstr_w(class), options, access, sa, retkey, dispos, transaction, reserved2 );
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* RegCreateKeyTransactedA [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
LSTATUS WINAPI RegCreateKeyTransactedA( HKEY hkey, LPCSTR name, DWORD reserved, LPSTR class,
|
|
|
|
DWORD options, REGSAM access, SECURITY_ATTRIBUTES *sa,
|
|
|
|
PHKEY retkey, LPDWORD dispos, HANDLE transaction, PVOID reserved2 )
|
|
|
|
{
|
2022-02-07 22:10:27 +00:00
|
|
|
FIXME( "(%p,%s,%lu,%s,%lu,%lu,%p,%p,%p,%p,%p): stub\n", hkey, debugstr_a(name), reserved,
|
2015-12-23 16:18:38 +00:00
|
|
|
debugstr_a(class), options, access, sa, retkey, dispos, transaction, reserved2 );
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
1999-11-23 19:41:34 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2004-07-13 23:33:14 +00:00
|
|
|
* RegOpenKeyW [ADVAPI32.@]
|
1999-11-23 19:41:34 +00:00
|
|
|
*
|
2004-04-23 21:32:34 +00:00
|
|
|
* See RegOpenKeyA.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegOpenKeyW( HKEY hkey, LPCWSTR name, PHKEY retkey )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2009-06-28 18:40:04 +00:00
|
|
|
if (!retkey)
|
|
|
|
return ERROR_INVALID_PARAMETER;
|
|
|
|
|
2005-02-25 16:52:10 +00:00
|
|
|
if (!name || !*name)
|
|
|
|
{
|
|
|
|
*retkey = hkey;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
2009-12-04 15:07:27 +00:00
|
|
|
return RegOpenKeyExW( hkey, name, 0, MAXIMUM_ALLOWED, retkey );
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2004-07-13 23:33:14 +00:00
|
|
|
* RegOpenKeyA [ADVAPI32.@]
|
2019-06-25 10:34:15 +00:00
|
|
|
*
|
2004-04-23 21:32:34 +00:00
|
|
|
* Open a registry key.
|
|
|
|
*
|
|
|
|
* PARAMS
|
2004-07-13 23:33:14 +00:00
|
|
|
* hkey [I] Handle of parent key to open the new key under
|
|
|
|
* name [I] Name of the key under hkey to open
|
|
|
|
* retkey [O] Destination for the resulting Handle
|
2004-04-23 21:32:34 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
2004-07-13 23:33:14 +00:00
|
|
|
* Success: ERROR_SUCCESS
|
2009-06-28 18:40:04 +00:00
|
|
|
* Failure: A standard Win32 error code. When retkey is valid, *retkey is set to 0.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegOpenKeyA( HKEY hkey, LPCSTR name, PHKEY retkey )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2009-06-28 18:40:04 +00:00
|
|
|
if (!retkey)
|
|
|
|
return ERROR_INVALID_PARAMETER;
|
|
|
|
|
2005-02-25 16:52:10 +00:00
|
|
|
if (!name || !*name)
|
|
|
|
{
|
|
|
|
*retkey = hkey;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
2009-12-04 15:07:27 +00:00
|
|
|
return RegOpenKeyExA( hkey, name, 0, MAXIMUM_ALLOWED, retkey );
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-10-29 01:24:54 +00:00
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegEnumKeyW [ADVAPI32.@]
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Enumerates subkeys of the specified open reg key.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hKey [I] Handle to an open key.
|
|
|
|
* dwIndex [I] Index of the subkey of hKey to retrieve.
|
|
|
|
* lpName [O] Name of the subkey.
|
|
|
|
* cchName [I] Size of lpName in TCHARS.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
2019-06-25 10:34:15 +00:00
|
|
|
* Failure: system error code. If there are no more subkeys available, the
|
|
|
|
* function returns ERROR_NO_MORE_ITEMS.
|
2000-10-29 01:24:54 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegEnumKeyW( HKEY hkey, DWORD index, LPWSTR name, DWORD name_len )
|
2000-10-29 01:24:54 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RegEnumKeyExW( hkey, index, name, &name_len, NULL, NULL, NULL, NULL );
|
|
|
|
}
|
2015-12-27 22:18:00 +00:00
|
|
|
|
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegEnumKeyA [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See RegEnumKeyW.
|
|
|
|
*/
|
|
|
|
LSTATUS WINAPI RegEnumKeyA( HKEY hkey, DWORD index, LPSTR name, DWORD name_len )
|
|
|
|
{
|
|
|
|
return RegEnumKeyExA( hkey, index, name, &name_len, NULL, NULL, NULL, NULL );
|
2000-10-29 01:24:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-11-23 19:41:34 +00:00
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegQueryMultipleValuesA [ADVAPI32.@]
|
1999-11-23 19:41:34 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Retrieves the type and data for a list of value names associated with a key.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
1999-11-23 19:41:34 +00:00
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hKey [I] Handle to an open key.
|
|
|
|
* val_list [O] Array of VALENT structures that describes the entries.
|
|
|
|
* num_vals [I] Number of elements in val_list.
|
|
|
|
* lpValueBuf [O] Pointer to a buffer that receives the data for each value.
|
|
|
|
* ldwTotsize [I/O] Size of lpValueBuf.
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
2019-06-25 10:34:15 +00:00
|
|
|
* Success: ERROR_SUCCESS. ldwTotsize contains num bytes copied.
|
|
|
|
* Failure: nonzero error code from Winerror.h ldwTotsize contains num needed
|
|
|
|
* bytes.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegQueryMultipleValuesA( HKEY hkey, PVALENTA val_list, DWORD num_vals,
|
|
|
|
LPSTR lpValueBuf, LPDWORD ldwTotsize )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
unsigned int i;
|
|
|
|
DWORD maxBytes = *ldwTotsize;
|
|
|
|
LSTATUS status;
|
|
|
|
LPSTR bufptr = lpValueBuf;
|
|
|
|
*ldwTotsize = 0;
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%p,%ld,%p,%p=%ld)\n", hkey, val_list, num_vals, lpValueBuf, ldwTotsize, *ldwTotsize);
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
for(i=0; i < num_vals; ++i)
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2000-10-02 03:46:58 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
val_list[i].ve_valuelen=0;
|
|
|
|
status = RegQueryValueExA(hkey, val_list[i].ve_valuename, NULL, NULL, NULL, &val_list[i].ve_valuelen);
|
|
|
|
if(status != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
return status;
|
|
|
|
}
|
2000-10-02 03:46:58 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
if(lpValueBuf != NULL && *ldwTotsize + val_list[i].ve_valuelen <= maxBytes)
|
2000-10-02 03:46:58 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
status = RegQueryValueExA(hkey, val_list[i].ve_valuename, NULL, &val_list[i].ve_type,
|
|
|
|
(LPBYTE)bufptr, &val_list[i].ve_valuelen);
|
|
|
|
if(status != ERROR_SUCCESS)
|
2000-10-02 03:46:58 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return status;
|
2000-10-02 03:46:58 +00:00
|
|
|
}
|
2019-06-25 10:34:15 +00:00
|
|
|
|
|
|
|
val_list[i].ve_valueptr = (DWORD_PTR)bufptr;
|
|
|
|
|
|
|
|
bufptr += val_list[i].ve_valuelen;
|
2000-10-02 03:46:58 +00:00
|
|
|
}
|
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
*ldwTotsize += val_list[i].ve_valuelen;
|
|
|
|
}
|
|
|
|
return lpValueBuf != NULL && *ldwTotsize <= maxBytes ? ERROR_SUCCESS : ERROR_MORE_DATA;
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegQueryMultipleValuesW [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegQueryMultipleValuesA.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegQueryMultipleValuesW( HKEY hkey, PVALENTW val_list, DWORD num_vals,
|
|
|
|
LPWSTR lpValueBuf, LPDWORD ldwTotsize )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
unsigned int i;
|
|
|
|
DWORD maxBytes = *ldwTotsize;
|
|
|
|
LSTATUS status;
|
|
|
|
LPSTR bufptr = (LPSTR)lpValueBuf;
|
|
|
|
*ldwTotsize = 0;
|
2002-07-05 01:21:13 +00:00
|
|
|
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%p,%ld,%p,%p=%ld)\n", hkey, val_list, num_vals, lpValueBuf, ldwTotsize, *ldwTotsize);
|
1999-11-23 19:41:34 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
for(i=0; i < num_vals; ++i)
|
2002-07-20 20:02:55 +00:00
|
|
|
{
|
|
|
|
val_list[i].ve_valuelen=0;
|
|
|
|
status = RegQueryValueExW(hkey, val_list[i].ve_valuename, NULL, NULL, NULL, &val_list[i].ve_valuelen);
|
|
|
|
if(status != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
if(lpValueBuf != NULL && *ldwTotsize + val_list[i].ve_valuelen <= maxBytes)
|
|
|
|
{
|
|
|
|
status = RegQueryValueExW(hkey, val_list[i].ve_valuename, NULL, &val_list[i].ve_type,
|
|
|
|
(LPBYTE)bufptr, &val_list[i].ve_valuelen);
|
|
|
|
if(status != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
return status;
|
|
|
|
}
|
2014-06-28 16:15:47 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
val_list[i].ve_valueptr = (DWORD_PTR)bufptr;
|
2014-06-28 16:15:47 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
bufptr += val_list[i].ve_valuelen;
|
|
|
|
}
|
2014-06-28 16:15:47 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
*ldwTotsize += val_list[i].ve_valuelen;
|
2014-06-28 16:15:47 +00:00
|
|
|
}
|
2019-06-25 10:34:15 +00:00
|
|
|
return lpValueBuf != NULL && *ldwTotsize <= maxBytes ? ERROR_SUCCESS : ERROR_MORE_DATA;
|
2014-06-28 16:15:47 +00:00
|
|
|
}
|
|
|
|
|
1999-11-23 19:41:34 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegQueryReflectionKey [ADVAPI32.@]
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LONG WINAPI RegQueryReflectionKey( HKEY hkey, BOOL *is_reflection_disabled )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
FIXME( "%p, %p stub\n", hkey, is_reflection_disabled );
|
|
|
|
*is_reflection_disabled = TRUE;
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegDeleteKeyW [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegDeleteKeyA.
|
1999-11-23 19:41:34 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegDeleteKeyW( HKEY hkey, LPCWSTR name )
|
1999-11-23 19:41:34 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RegDeleteKeyExW( hkey, name, 0, 0 );
|
1999-11-23 19:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegDeleteKeyA [ADVAPI32.@]
|
1999-11-23 19:41:34 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Delete a registry key.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
1999-11-23 19:41:34 +00:00
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hkey [I] Handle to parent key containing the key to delete
|
|
|
|
* name [I] Name of the key user hkey to delete
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* NOTES
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* MSDN is wrong when it says that hkey must be opened with the DELETE access
|
|
|
|
* right. In reality, it opens a new handle with DELETE access.
|
2017-04-13 16:00:22 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: Error code
|
2017-04-13 16:00:22 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegDeleteKeyA( HKEY hkey, LPCSTR name )
|
2017-04-13 16:00:22 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RegDeleteKeyExA( hkey, name, 0, 0 );
|
2017-04-13 16:00:22 +00:00
|
|
|
}
|
|
|
|
|
2000-11-30 20:31:41 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegSetValueW [ADVAPI32.@]
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Sets the data for the default or unnamed value of a reg key.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
2000-11-30 20:31:41 +00:00
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hkey [I] Handle to an open key.
|
|
|
|
* subkey [I] Name of a subkey of hKey.
|
|
|
|
* type [I] Type of information to store.
|
|
|
|
* data [I] String that contains the data to set for the default value.
|
|
|
|
* count [I] Ignored.
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code from Winerror.h
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegSetValueW( HKEY hkey, LPCWSTR subkey, DWORD type, LPCWSTR data, DWORD count )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%s,%ld,%s,%ld)\n", hkey, debugstr_w(subkey), type, debugstr_w(data), count );
|
2000-11-30 20:31:41 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
if (type != REG_SZ || !data) return ERROR_INVALID_PARAMETER;
|
2000-11-30 20:31:41 +00:00
|
|
|
|
2020-09-09 13:37:49 +00:00
|
|
|
return RegSetKeyValueW( hkey, subkey, NULL, type, data, (lstrlenW(data) + 1)*sizeof(WCHAR) );
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegSetValueA [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegSetValueW.
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegSetValueA( HKEY hkey, LPCSTR subkey, DWORD type, LPCSTR data, DWORD count )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%s,%ld,%s,%ld)\n", hkey, debugstr_a(subkey), type, debugstr_a(data), count );
|
2003-01-20 23:23:12 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
if (type != REG_SZ || !data) return ERROR_INVALID_PARAMETER;
|
|
|
|
|
|
|
|
return RegSetKeyValueA( hkey, subkey, NULL, type, data, strlen(data) + 1 );
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegQueryValueW [ADVAPI32.@]
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Retrieves the data associated with the default or unnamed value of a key.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
2000-11-30 20:31:41 +00:00
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hkey [I] Handle to an open key.
|
|
|
|
* name [I] Name of the subkey of hKey.
|
|
|
|
* data [O] Receives the string associated with the default value
|
|
|
|
* of the key.
|
|
|
|
* count [I/O] Size of lpValue in bytes.
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code from Winerror.h
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegQueryValueW( HKEY hkey, LPCWSTR name, LPWSTR data, LPLONG count )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2003-08-19 03:08:17 +00:00
|
|
|
DWORD ret;
|
2019-06-25 10:34:15 +00:00
|
|
|
HKEY subkey = hkey;
|
2005-03-30 10:21:15 +00:00
|
|
|
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%s,%p,%ld)\n", hkey, debugstr_w(name), data, count ? *count : 0 );
|
2003-08-19 03:08:17 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
if (name && name[0])
|
|
|
|
{
|
|
|
|
if ((ret = RegOpenKeyW( hkey, name, &subkey )) != ERROR_SUCCESS) return ret;
|
|
|
|
}
|
|
|
|
ret = RegQueryValueExW( subkey, NULL, NULL, NULL, (LPBYTE)data, (LPDWORD)count );
|
|
|
|
if (subkey != hkey) RegCloseKey( subkey );
|
|
|
|
if (ret == ERROR_FILE_NOT_FOUND)
|
|
|
|
{
|
|
|
|
/* return empty string if default value not found */
|
|
|
|
if (data) *data = 0;
|
|
|
|
if (count) *count = sizeof(WCHAR);
|
|
|
|
ret = ERROR_SUCCESS;
|
|
|
|
}
|
2003-08-19 03:08:17 +00:00
|
|
|
return ret;
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegQueryValueA [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegQueryValueW.
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegQueryValueA( HKEY hkey, LPCSTR name, LPSTR data, LPLONG count )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
DWORD ret;
|
|
|
|
HKEY subkey = hkey;
|
2003-01-20 23:23:12 +00:00
|
|
|
|
2022-02-07 22:10:27 +00:00
|
|
|
TRACE("(%p,%s,%p,%ld)\n", hkey, debugstr_a(name), data, count ? *count : 0 );
|
2019-06-25 10:34:15 +00:00
|
|
|
|
|
|
|
if (name && name[0])
|
|
|
|
{
|
|
|
|
if ((ret = RegOpenKeyA( hkey, name, &subkey )) != ERROR_SUCCESS) return ret;
|
|
|
|
}
|
|
|
|
ret = RegQueryValueExA( subkey, NULL, NULL, NULL, (LPBYTE)data, (LPDWORD)count );
|
|
|
|
if (subkey != hkey) RegCloseKey( subkey );
|
|
|
|
if (ret == ERROR_FILE_NOT_FOUND)
|
|
|
|
{
|
|
|
|
/* return empty string if default value not found */
|
|
|
|
if (data) *data = 0;
|
|
|
|
if (count) *count = 1;
|
|
|
|
ret = ERROR_SUCCESS;
|
|
|
|
}
|
2000-11-30 20:31:41 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegSaveKeyW [ADVAPI32.@]
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Save a key and all of its subkeys and values to a new file in the standard format.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
2000-11-30 20:31:41 +00:00
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hkey [I] Handle of key where save begins
|
|
|
|
* lpFile [I] Address of filename to save to
|
|
|
|
* sa [I] Address of security structure
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code from Winerror.h
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegSaveKeyW( HKEY hkey, LPCWSTR file, LPSECURITY_ATTRIBUTES sa )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RegSaveKeyExW(hkey, file, sa, 0);
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegSaveKeyA [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegSaveKeyW.
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegSaveKeyA( HKEY hkey, LPCSTR file, LPSECURITY_ATTRIBUTES sa )
|
|
|
|
{
|
|
|
|
return RegSaveKeyExA(hkey, file, sa, 0);
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegReplaceKeyW [ADVAPI32.@]
|
2004-04-23 21:32:34 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Replace the file backing a registry key and all its subkeys with another file.
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
2019-06-25 10:34:15 +00:00
|
|
|
* hkey [I] Handle of open key
|
|
|
|
* lpSubKey [I] Address of name of subkey
|
|
|
|
* lpNewFile [I] Address of filename for file with new data
|
|
|
|
* lpOldFile [I] Address of filename for backup file
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
2004-07-13 23:33:14 +00:00
|
|
|
* Success: ERROR_SUCCESS
|
2019-06-25 10:34:15 +00:00
|
|
|
* Failure: nonzero error code from Winerror.h
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegReplaceKeyW( HKEY hkey, LPCWSTR lpSubKey, LPCWSTR lpNewFile,
|
|
|
|
LPCWSTR lpOldFile )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
FIXME("(%p,%s,%s,%s): stub\n", hkey, debugstr_w(lpSubKey),
|
|
|
|
debugstr_w(lpNewFile),debugstr_w(lpOldFile));
|
|
|
|
return ERROR_SUCCESS;
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-07-01 23:34:44 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegRenameKey [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
*/
|
2022-06-09 19:54:16 +00:00
|
|
|
LSTATUS WINAPI RegRenameKey( HKEY hkey, LPCWSTR subkey_name, LPCWSTR new_name )
|
2020-07-01 23:34:44 +00:00
|
|
|
{
|
2022-06-09 19:54:16 +00:00
|
|
|
UNICODE_STRING str;
|
|
|
|
LSTATUS ret;
|
|
|
|
HKEY subkey;
|
|
|
|
|
|
|
|
TRACE("%p, %s, %s.\n", hkey, debugstr_w(subkey_name), debugstr_w(new_name));
|
|
|
|
|
|
|
|
RtlInitUnicodeString(&str, new_name);
|
|
|
|
|
|
|
|
if (!subkey_name)
|
|
|
|
return RtlNtStatusToDosError( NtRenameKey( hkey, &str ));
|
|
|
|
|
|
|
|
if ((ret = RegOpenKeyExW( hkey, subkey_name, 0, KEY_WRITE, &subkey )))
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
ret = RtlNtStatusToDosError( NtRenameKey( subkey, &str ));
|
|
|
|
RegCloseKey( subkey );
|
|
|
|
|
|
|
|
return ret;
|
2020-07-01 23:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-11-30 20:31:41 +00:00
|
|
|
/******************************************************************************
|
2019-06-25 10:34:15 +00:00
|
|
|
* RegReplaceKeyA [ADVAPI32.@]
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* See RegReplaceKeyW.
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2019-06-25 10:34:15 +00:00
|
|
|
LSTATUS WINAPI RegReplaceKeyA( HKEY hkey, LPCSTR lpSubKey, LPCSTR lpNewFile,
|
|
|
|
LPCSTR lpOldFile )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
UNICODE_STRING lpSubKeyW;
|
|
|
|
UNICODE_STRING lpNewFileW;
|
|
|
|
UNICODE_STRING lpOldFileW;
|
|
|
|
LONG ret;
|
2004-01-03 00:38:30 +00:00
|
|
|
|
2019-06-25 10:34:15 +00:00
|
|
|
RtlCreateUnicodeStringFromAsciiz( &lpSubKeyW, lpSubKey );
|
|
|
|
RtlCreateUnicodeStringFromAsciiz( &lpOldFileW, lpOldFile );
|
|
|
|
RtlCreateUnicodeStringFromAsciiz( &lpNewFileW, lpNewFile );
|
|
|
|
ret = RegReplaceKeyW( hkey, lpSubKeyW.Buffer, lpNewFileW.Buffer, lpOldFileW.Buffer );
|
|
|
|
RtlFreeUnicodeString( &lpOldFileW );
|
|
|
|
RtlFreeUnicodeString( &lpNewFileW );
|
|
|
|
RtlFreeUnicodeString( &lpSubKeyW );
|
|
|
|
return ret;
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* RegConnectRegistryW [ADVAPI32.@]
|
2000-11-30 20:31:41 +00:00
|
|
|
*
|
2007-04-06 23:46:59 +00:00
|
|
|
* Establish a connection to a predefined registry key on another computer.
|
2005-11-12 19:12:03 +00:00
|
|
|
*
|
2000-11-30 20:31:41 +00:00
|
|
|
* PARAMS
|
2004-07-13 23:33:14 +00:00
|
|
|
* lpMachineName [I] Address of name of remote computer
|
|
|
|
* hHey [I] Predefined registry handle
|
|
|
|
* phkResult [I] Address of buffer for remote registry handle
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code from Winerror.h
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegConnectRegistryW( LPCWSTR lpMachineName, HKEY hKey,
|
2019-06-25 10:34:15 +00:00
|
|
|
PHKEY phkResult )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2004-03-18 01:34:23 +00:00
|
|
|
LONG ret;
|
|
|
|
|
2012-06-26 21:38:13 +00:00
|
|
|
TRACE("(%s,%p,%p)\n",debugstr_w(lpMachineName), hKey, phkResult);
|
2000-11-30 20:31:41 +00:00
|
|
|
|
|
|
|
if (!lpMachineName || !*lpMachineName) {
|
|
|
|
/* Use the local machine name */
|
2004-03-18 01:34:23 +00:00
|
|
|
ret = RegOpenKeyW( hKey, NULL, phkResult );
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
2005-09-15 09:31:05 +00:00
|
|
|
else {
|
2004-03-18 01:34:23 +00:00
|
|
|
WCHAR compName[MAX_COMPUTERNAME_LENGTH + 1];
|
2018-03-29 15:14:15 +00:00
|
|
|
DWORD len = ARRAY_SIZE( compName );
|
2000-11-30 20:31:41 +00:00
|
|
|
|
2005-09-15 09:31:05 +00:00
|
|
|
/* MSDN says lpMachineName must start with \\ : not so */
|
|
|
|
if( lpMachineName[0] == '\\' && lpMachineName[1] == '\\')
|
|
|
|
lpMachineName += 2;
|
2004-03-18 01:34:23 +00:00
|
|
|
if (GetComputerNameW(compName, &len))
|
|
|
|
{
|
2020-09-09 13:37:49 +00:00
|
|
|
if (!wcsicmp(lpMachineName, compName))
|
2004-03-18 01:34:23 +00:00
|
|
|
ret = RegOpenKeyW(hKey, NULL, phkResult);
|
|
|
|
else
|
|
|
|
{
|
2005-09-15 09:31:05 +00:00
|
|
|
FIXME("Connect to %s is not supported.\n",debugstr_w(lpMachineName));
|
2004-03-18 01:34:23 +00:00
|
|
|
ret = ERROR_BAD_NETPATH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
ret = GetLastError();
|
|
|
|
}
|
|
|
|
return ret;
|
2000-11-30 20:31:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* RegConnectRegistryA [ADVAPI32.@]
|
2004-07-13 23:33:14 +00:00
|
|
|
*
|
2005-11-04 11:43:27 +00:00
|
|
|
* See RegConnectRegistryW.
|
2000-11-30 20:31:41 +00:00
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegConnectRegistryA( LPCSTR machine, HKEY hkey, PHKEY reskey )
|
2000-11-30 20:31:41 +00:00
|
|
|
{
|
2003-01-20 23:23:12 +00:00
|
|
|
UNICODE_STRING machineW;
|
|
|
|
LONG ret;
|
|
|
|
|
|
|
|
RtlCreateUnicodeStringFromAsciiz( &machineW, machine );
|
|
|
|
ret = RegConnectRegistryW( machineW.Buffer, hkey, reskey );
|
|
|
|
RtlFreeUnicodeString( &machineW );
|
2000-11-30 20:31:41 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-06-30 10:06:48 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegDisablePredefinedCache [ADVAPI32.@]
|
|
|
|
*
|
2019-06-25 10:34:15 +00:00
|
|
|
* Disables the caching of the HKEY_CURRENT_USER key for the process.
|
2006-06-30 10:06:48 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* None.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: nonzero error code from Winerror.h
|
2019-06-25 10:34:15 +00:00
|
|
|
*
|
2006-06-30 10:06:48 +00:00
|
|
|
* NOTES
|
|
|
|
* This is useful for services that use impersonation.
|
|
|
|
*/
|
2007-09-17 22:40:48 +00:00
|
|
|
LSTATUS WINAPI RegDisablePredefinedCache(void)
|
2006-06-30 10:06:48 +00:00
|
|
|
{
|
2019-06-25 10:34:15 +00:00
|
|
|
return RtlNtStatusToDosError( DisablePredefinedHandleTableInternal( HKEY_CURRENT_USER ));
|
2016-02-26 16:00:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* RegCopyTreeA [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
LONG WINAPI RegCopyTreeA( HKEY hsrc, const char *subkey, HKEY hdst )
|
|
|
|
{
|
|
|
|
UNICODE_STRING subkeyW;
|
|
|
|
LONG ret;
|
|
|
|
|
|
|
|
if (subkey) RtlCreateUnicodeStringFromAsciiz( &subkeyW, subkey );
|
|
|
|
else subkeyW.Buffer = NULL;
|
|
|
|
ret = RegCopyTreeW( hsrc, subkeyW.Buffer, hdst );
|
|
|
|
RtlFreeUnicodeString( &subkeyW );
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-10 02:55:58 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegEnableReflectionKey [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
LONG WINAPI RegEnableReflectionKey(HKEY base)
|
|
|
|
{
|
|
|
|
FIXME("%p: stub\n", base);
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-04 03:54:14 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* RegDisableReflectionKey [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
LONG WINAPI RegDisableReflectionKey(HKEY base)
|
|
|
|
{
|
|
|
|
FIXME("%p: stub\n", base);
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|