mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:05:42 +00:00
[MKHIVE]
- Add RegDeleteKeyW stub. - Implement RegDeleteKeyA so that it calls RegDeleteKeyW. svn path=/trunk/; revision=47050
This commit is contained in:
parent
02c3f0fa12
commit
d39102cd83
1 changed files with 31 additions and 8 deletions
|
@ -25,9 +25,9 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - Implement RegDeleteKey()
|
* - Implement RegDeleteKeyW()
|
||||||
* - Implement RegEnumValue()
|
* - Implement RegEnumValue()
|
||||||
* - Implement RegQueryValueExA()
|
* - Implement RegQueryValueExW()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -246,15 +246,38 @@ RegCreateKeyA(
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG WINAPI
|
LONG WINAPI
|
||||||
RegDeleteKeyA(HKEY Key,
|
RegDeleteKeyW(
|
||||||
LPCSTR Name)
|
IN HKEY hKey,
|
||||||
|
IN LPCWSTR lpSubKey)
|
||||||
{
|
{
|
||||||
if (Name != NULL && strchr(Name, '\\') != NULL)
|
DPRINT1("FIXME!\n");
|
||||||
return(ERROR_INVALID_PARAMETER);
|
return ERROR_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
DPRINT1("FIXME!\n");
|
LONG WINAPI
|
||||||
|
RegDeleteKeyA(
|
||||||
|
IN HKEY hKey,
|
||||||
|
IN LPCSTR lpSubKey)
|
||||||
|
{
|
||||||
|
PWSTR lpSubKeyW = NULL;
|
||||||
|
LONG rc;
|
||||||
|
|
||||||
return(ERROR_SUCCESS);
|
if (lpSubKey != NULL && strchr(lpSubKey, '\\') != NULL)
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
|
||||||
|
if (lpSubKey)
|
||||||
|
{
|
||||||
|
lpSubKeyW = MultiByteToWideChar(lpSubKey);
|
||||||
|
if (!lpSubKeyW)
|
||||||
|
return ERROR_OUTOFMEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
|
rc = RegDeleteKeyW(hKey, lpSubKeyW);
|
||||||
|
|
||||||
|
if (lpSubKey)
|
||||||
|
free(lpSubKeyW);
|
||||||
|
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG WINAPI
|
LONG WINAPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue