Removed some unnecessary inclusions of wingdi.h and winuser.h
[wine/hacks.git] / dlls / shell32 / shellreg.c
blob2d639ef4ba9ff59f0f8109fa78aa231be5c08539
1 /*
2 Shell Registry Access
3 */
4 #include <string.h>
5 #include <stdio.h>
6 #include "winerror.h"
7 #include "winreg.h"
8 #include "debugtools.h"
9 #include "winnls.h"
10 #include "winversion.h"
11 #include "heap.h"
13 #include "shellapi.h"
14 #include "shlobj.h"
15 #include "shell32_main.h"
16 #include "wine/undocshell.h"
18 DEFAULT_DEBUG_CHANNEL(shell);
20 /*************************************************************************
21 * SHRegOpenKeyA [SHELL32.506]
24 HRESULT WINAPI SHRegOpenKeyA(
25 HKEY hKey,
26 LPSTR lpSubKey,
27 LPHKEY phkResult)
29 TRACE("(0x%08x, %s, %p)\n", hKey, debugstr_a(lpSubKey), phkResult);
30 return RegOpenKeyA(hKey, lpSubKey, phkResult);
33 /*************************************************************************
34 * SHRegOpenKeyW [NT4.0:SHELL32.507]
37 HRESULT WINAPI SHRegOpenKeyW (
38 HKEY hkey,
39 LPCWSTR lpszSubKey,
40 LPHKEY retkey)
42 WARN("0x%04x %s %p\n",hkey,debugstr_w(lpszSubKey),retkey);
43 return RegOpenKeyW( hkey, lpszSubKey, retkey );
46 /*************************************************************************
47 * SHRegQueryValueExA [SHELL32.509]
50 HRESULT WINAPI SHRegQueryValueExA(
51 HKEY hkey,
52 LPSTR lpValueName,
53 LPDWORD lpReserved,
54 LPDWORD lpType,
55 LPBYTE lpData,
56 LPDWORD lpcbData)
58 TRACE("0x%04x %s %p %p %p %p\n", hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
59 return RegQueryValueExA (hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
62 /*************************************************************************
63 * SHRegQueryValueW [NT4.0:SHELL32.510]
66 HRESULT WINAPI SHRegQueryValueW(
67 HKEY hkey,
68 LPWSTR lpszSubKey,
69 LPWSTR lpszData,
70 LPDWORD lpcbData )
72 WARN("0x%04x %s %p %p semi-stub\n",
73 hkey, debugstr_w(lpszSubKey), lpszData, lpcbData);
74 return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );
77 /*************************************************************************
78 * SHRegQueryValueExW [NT4.0:SHELL32.511]
80 * FIXME
81 * if the datatype REG_EXPAND_SZ then expand the string and change
82 * *pdwType to REG_SZ.
84 HRESULT WINAPI SHRegQueryValueExW (
85 HKEY hkey,
86 LPWSTR pszValue,
87 LPDWORD pdwReserved,
88 LPDWORD pdwType,
89 LPVOID pvData,
90 LPDWORD pcbData)
92 DWORD ret;
93 WARN("0x%04x %s %p %p %p %p semi-stub\n",
94 hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData);
95 ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);
96 return ret;
99 /*************************************************************************
100 * SHRegDeleteKeyA [SHELL32]
102 HRESULT WINAPI SHRegDeleteKeyA(
103 HKEY hkey,
104 LPCSTR pszSubKey)
106 FIXME("hkey=0x%08x, %s\n", hkey, debugstr_a(pszSubKey));
107 return 0;
110 /*************************************************************************
111 * SHRegDeleteKeyW [SHELL32]
113 HRESULT WINAPI SHRegDeleteKeyW(
114 HKEY hkey,
115 LPCWSTR pszSubKey)
117 FIXME("hkey=0x%08x, %s\n", hkey, debugstr_w(pszSubKey));
118 return 0;
121 /*************************************************************************
122 * SHRegCloseKey [NT4.0:SHELL32.505]
125 HRESULT WINAPI SHRegCloseKey (HKEY hkey)
127 TRACE("0x%04x\n",hkey);
128 return RegCloseKey( hkey );