- return(ERROR_SUCCESS);
-}
-
-LONG WINAPI
-RegDeleteKeyA(IN HKEY hKey,
- IN LPCSTR lpSubKey)
-{
- PWSTR lpSubKeyW;
- LONG rc;
-
- if (lpSubKey != NULL && strchr(lpSubKey, '\\') != NULL)
- return(ERROR_INVALID_PARAMETER);
-
- lpSubKeyW = MultiByteToWideChar(lpSubKey);
- if (!lpSubKeyW)
- return ERROR_OUTOFMEMORY;
-
- rc = RegDeleteKeyW(hKey, lpSubKeyW);
- free(lpSubKeyW);
- return rc;