2 * Shell Registry Access
4 * Copyright 2000 Juergen Schmied
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
35 #include "undocshell.h"
36 #include "wine/winbase16.h"
38 #include "wine/debug.h"
40 WINE_DEFAULT_DEBUG_CHANNEL(shell
);
42 /*************************************************************************
43 * SHRegOpenKeyA [SHELL32.506]
46 HRESULT WINAPI
SHRegOpenKeyA(
51 TRACE("(%p, %s, %p)\n", hKey
, debugstr_a(lpSubKey
), phkResult
);
52 return RegOpenKeyA(hKey
, lpSubKey
, phkResult
);
55 /*************************************************************************
56 * SHRegOpenKeyW [SHELL32.507] NT 4.0
59 HRESULT WINAPI
SHRegOpenKeyW (
64 WARN("%p %s %p\n",hkey
,debugstr_w(lpszSubKey
),retkey
);
65 return RegOpenKeyW( hkey
, lpszSubKey
, retkey
);
68 /*************************************************************************
69 * SHRegQueryValueA [SHELL32.508]
72 HRESULT WINAPI
SHRegQueryValueA(HKEY hkey
, LPSTR lpSubKey
, LPSTR lpValue
, LPDWORD lpcbValue
)
74 TRACE("(%p %s %p %p)\n", hkey
, debugstr_a(lpSubKey
), lpValue
, lpcbValue
);
75 return RegQueryValueA(hkey
, lpSubKey
, lpValue
, (LONG
*)lpcbValue
);
78 /*************************************************************************
79 * SHRegQueryValueExA [SHELL32.509]
82 HRESULT WINAPI
SHRegQueryValueExA(
90 TRACE("%p %s %p %p %p %p\n", hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
91 return RegQueryValueExA (hkey
, lpValueName
, lpReserved
, lpType
, lpData
, lpcbData
);
94 /*************************************************************************
95 * SHRegQueryValueW [SHELL32.510] NT4.0
98 HRESULT WINAPI
SHRegQueryValueW(
104 WARN("%p %s %p %p semi-stub\n",
105 hkey
, debugstr_w(lpszSubKey
), lpszData
, lpcbData
);
106 return RegQueryValueW( hkey
, lpszSubKey
, lpszData
, (LONG
*)lpcbData
);
109 /*************************************************************************
110 * SHRegQueryValueExW [SHELL32.511] NT4.0
113 * if the datatype REG_EXPAND_SZ then expand the string and change
114 * *pdwType to REG_SZ.
116 HRESULT WINAPI
SHRegQueryValueExW (
125 WARN("%p %s %p %p %p %p semi-stub\n",
126 hkey
, debugstr_w(pszValue
), pdwReserved
, pdwType
, pvData
, pcbData
);
127 ret
= RegQueryValueExW ( hkey
, pszValue
, pdwReserved
, pdwType
, pvData
, pcbData
);
131 /*************************************************************************
132 * SHRegDeleteKeyA [SHELL32.?]
134 HRESULT WINAPI
SHRegDeleteKeyA(
138 FIXME("hkey=%p, %s\n", hkey
, debugstr_a(pszSubKey
));
142 /*************************************************************************
143 * SHRegDeleteKeyW [SHELL32.512]
145 HRESULT WINAPI
SHRegDeleteKeyW(
149 FIXME("hkey=%p, %s\n", hkey
, debugstr_w(pszSubKey
));
153 /*************************************************************************
154 * SHRegCloseKey [SHELL32.505] NT 4.0
157 HRESULT WINAPI
SHRegCloseKey (HKEY hkey
)
160 return RegCloseKey( hkey
);