1 | /*
|
---|
2 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
3 | * Win32 NT Runtime / NTDLL for OS/2
|
---|
4 | *
|
---|
5 | * Copyright 1998 original WINE Author
|
---|
6 | * Copyright 1998, 1999 Patrick Haller (phaller@gmx.net)
|
---|
7 | *
|
---|
8 | * registry functions
|
---|
9 | */
|
---|
10 |
|
---|
11 | #include "winreg.h"
|
---|
12 |
|
---|
13 | #include "ntdll.h"
|
---|
14 |
|
---|
15 |
|
---|
16 | /******************************************************************************
|
---|
17 | * NtCreateKey [NTDLL]
|
---|
18 | * ZwCreateKey
|
---|
19 | */
|
---|
20 | NTSTATUS WINAPI NtCreateKey(PHANDLE KeyHandle,
|
---|
21 | ACCESS_MASK DesiredAccess,
|
---|
22 | POBJECT_ATTRIBUTES ObjectAttributes,
|
---|
23 | ULONG TitleIndex,
|
---|
24 | PUNICODE_STRING Class,
|
---|
25 | ULONG CreateOptions,
|
---|
26 | PULONG Disposition)
|
---|
27 | {
|
---|
28 | dprintf (("NTDLL: NtCreateKey(%08xh, %08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
29 | KeyHandle,
|
---|
30 | DesiredAccess,
|
---|
31 | ObjectAttributes,
|
---|
32 | TitleIndex,
|
---|
33 | Class,
|
---|
34 | CreateOptions,
|
---|
35 | Disposition));
|
---|
36 |
|
---|
37 | return (0);
|
---|
38 | }
|
---|
39 |
|
---|
40 |
|
---|
41 | /******************************************************************************
|
---|
42 | * NtDeleteKey [NTDLL]
|
---|
43 | * ZwDeleteKey
|
---|
44 | */
|
---|
45 | NTSTATUS WINAPI NtDeleteKey(HANDLE KeyHandle)
|
---|
46 | {
|
---|
47 | dprintf(("NTDLL: NtDeleteKey(%08xh) not implemented\n",
|
---|
48 | KeyHandle));
|
---|
49 |
|
---|
50 | return (0);
|
---|
51 | }
|
---|
52 |
|
---|
53 |
|
---|
54 | /******************************************************************************
|
---|
55 | * NtDeleteValueKey [NTDLL]
|
---|
56 | * ZwDeleteValueKey
|
---|
57 | */
|
---|
58 | NTSTATUS WINAPI NtDeleteValueKey(HANDLE KeyHandle,
|
---|
59 | PUNICODE_STRING ValueName)
|
---|
60 | {
|
---|
61 | dprintf(("NTDLL: NtDeleteValueKey(%08xh, %08xh) not implemented\n",
|
---|
62 | KeyHandle,
|
---|
63 | ValueName));
|
---|
64 |
|
---|
65 | return(0);
|
---|
66 | }
|
---|
67 |
|
---|
68 |
|
---|
69 | /******************************************************************************
|
---|
70 | * NtEnumerateKey [NTDLL]
|
---|
71 | * ZwEnumerateKey
|
---|
72 | */
|
---|
73 | NTSTATUS WINAPI NtEnumerateKey(HANDLE KeyHandle,
|
---|
74 | ULONG Index,
|
---|
75 | KEY_INFORMATION_CLASS KeyInformationClass,
|
---|
76 | PVOID KeyInformation,
|
---|
77 | ULONG Length,
|
---|
78 | PULONG ResultLength)
|
---|
79 | {
|
---|
80 | dprintf(("NTDLL: NtEnumerateKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
81 | KeyHandle,
|
---|
82 | Index,
|
---|
83 | KeyInformationClass,
|
---|
84 | KeyInformation,
|
---|
85 | Length,
|
---|
86 | ResultLength));
|
---|
87 |
|
---|
88 | return 0;
|
---|
89 | }
|
---|
90 |
|
---|
91 |
|
---|
92 | /******************************************************************************
|
---|
93 | * NtEnumerateValueKey [NTDLL]
|
---|
94 | * ZwEnumerateValueKey
|
---|
95 | */
|
---|
96 | NTSTATUS WINAPI NtEnumerateValueKey(HANDLE KeyHandle,
|
---|
97 | ULONG Index,
|
---|
98 | KEY_VALUE_INFORMATION_CLASS KeyInformationClass,
|
---|
99 | PVOID KeyInformation,
|
---|
100 | ULONG Length,
|
---|
101 | PULONG ResultLength)
|
---|
102 | {
|
---|
103 | dprintf(("NTDLL: NtEnumerateValueKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
104 | KeyHandle,
|
---|
105 | Index,
|
---|
106 | KeyInformationClass,
|
---|
107 | KeyInformation,
|
---|
108 | Length,
|
---|
109 | ResultLength));
|
---|
110 |
|
---|
111 | return 0;
|
---|
112 | }
|
---|
113 |
|
---|
114 |
|
---|
115 | /******************************************************************************
|
---|
116 | * NtFlushKey [NTDLL]
|
---|
117 | * ZwFlushKey
|
---|
118 | */
|
---|
119 | NTSTATUS WINAPI NtFlushKey(HANDLE KeyHandle)
|
---|
120 | {
|
---|
121 | dprintf(("NTDLL: NtFlushKey(%08xh)\n",
|
---|
122 | KeyHandle));
|
---|
123 |
|
---|
124 | return ERROR_SUCCESS;
|
---|
125 | }
|
---|
126 |
|
---|
127 |
|
---|
128 | /******************************************************************************
|
---|
129 | * NtLoadKey [NTDLL]
|
---|
130 | * ZwLoadKey
|
---|
131 | */
|
---|
132 | NTSTATUS WINAPI NtLoadKey(PHANDLE KeyHandle,
|
---|
133 | POBJECT_ATTRIBUTES ObjectAttributes)
|
---|
134 | {
|
---|
135 | dprintf(("NTDLL: NtLoadKey(%08xh,%08xh) not implemented.\n",
|
---|
136 | KeyHandle,
|
---|
137 | ObjectAttributes));
|
---|
138 |
|
---|
139 | return 0;
|
---|
140 | }
|
---|
141 |
|
---|
142 |
|
---|
143 | /******************************************************************************
|
---|
144 | * NtNotifyChangeKey [NTDLL]
|
---|
145 | * ZwNotifyChangeKey
|
---|
146 | */
|
---|
147 | NTSTATUS WINAPI NtNotifyChangeKey(HANDLE KeyHandle,
|
---|
148 | HANDLE Event,
|
---|
149 | PIO_APC_ROUTINE ApcRoutine,
|
---|
150 | PVOID ApcContext,
|
---|
151 | PIO_STATUS_BLOCK IoStatusBlock,
|
---|
152 | ULONG CompletionFilter,
|
---|
153 | BOOLEAN Asynchronous,
|
---|
154 | PVOID ChangeBuffer,
|
---|
155 | ULONG Length,
|
---|
156 | BOOLEAN WatchSubTree)
|
---|
157 | {
|
---|
158 | dprintf(("NTDLL: NtNotifyChangeKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
159 | KeyHandle,
|
---|
160 | Event,
|
---|
161 | ApcRoutine,
|
---|
162 | ApcContext,
|
---|
163 | IoStatusBlock,
|
---|
164 | CompletionFilter,
|
---|
165 | Asynchronous,
|
---|
166 | ChangeBuffer,
|
---|
167 | Length,
|
---|
168 | WatchSubTree));
|
---|
169 |
|
---|
170 | return 0;
|
---|
171 | }
|
---|
172 |
|
---|
173 |
|
---|
174 | /******************************************************************************
|
---|
175 | * NtOpenKey [NTDLL.129]
|
---|
176 | * ZwOpenKey
|
---|
177 | * OUT PHANDLE KeyHandle,
|
---|
178 | * IN ACCESS_MASK DesiredAccess,
|
---|
179 | * IN POBJECT_ATTRIBUTES ObjectAttributes
|
---|
180 | */
|
---|
181 | NTSTATUS WINAPI NtOpenKey(PHANDLE KeyHandle,
|
---|
182 | ACCESS_MASK DesiredAccess,
|
---|
183 | POBJECT_ATTRIBUTES ObjectAttributes)
|
---|
184 | {
|
---|
185 | dprintf(("NTDLL: NtOpenKey(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
186 | KeyHandle,
|
---|
187 | DesiredAccess,
|
---|
188 | ObjectAttributes));
|
---|
189 | return 0;
|
---|
190 | }
|
---|
191 |
|
---|
192 |
|
---|
193 | /******************************************************************************
|
---|
194 | * NtQueryKey [NTDLL]
|
---|
195 | * ZwQueryKey
|
---|
196 | */
|
---|
197 | NTSTATUS WINAPI NtQueryKey(HANDLE KeyHandle,
|
---|
198 | KEY_INFORMATION_CLASS KeyInformationClass,
|
---|
199 | PVOID KeyInformation,
|
---|
200 | ULONG Length,
|
---|
201 | PULONG ResultLength)
|
---|
202 | {
|
---|
203 | dprintf(("NTDLL: NtQueryKey(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
204 | KeyHandle,
|
---|
205 | KeyInformationClass,
|
---|
206 | KeyInformation,
|
---|
207 | Length,
|
---|
208 | ResultLength));
|
---|
209 |
|
---|
210 | return 0;
|
---|
211 | }
|
---|
212 |
|
---|
213 |
|
---|
214 | /******************************************************************************
|
---|
215 | * NtQueryMultipleValueKey [NTDLL]
|
---|
216 | * ZwQueryMultipleValueKey
|
---|
217 | */
|
---|
218 |
|
---|
219 | NTSTATUS WINAPI NtQueryMultipleValueKey(HANDLE KeyHandle,
|
---|
220 | PVALENTW ListOfValuesToQuery,
|
---|
221 | ULONG NumberOfItems,
|
---|
222 | PVOID MultipleValueInformation,
|
---|
223 | ULONG Length,
|
---|
224 | PULONG ReturnLength)
|
---|
225 | {
|
---|
226 | dprintf(("NTDLL: NtQueryMultipleValueKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
227 | KeyHandle,
|
---|
228 | ListOfValuesToQuery,
|
---|
229 | NumberOfItems,
|
---|
230 | MultipleValueInformation,
|
---|
231 | Length,
|
---|
232 | ReturnLength));
|
---|
233 |
|
---|
234 | return 0;
|
---|
235 | }
|
---|
236 |
|
---|
237 |
|
---|
238 | /******************************************************************************
|
---|
239 | * NtQueryValueKey [NTDLL]
|
---|
240 | * ZwQueryValueKey
|
---|
241 | */
|
---|
242 | NTSTATUS WINAPI NtQueryValueKey(HANDLE KeyHandle,
|
---|
243 | PUNICODE_STRING ValueName,
|
---|
244 | KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
|
---|
245 | PVOID KeyValueInformation,
|
---|
246 | ULONG Length,
|
---|
247 | PULONG ResultLength)
|
---|
248 | {
|
---|
249 | dprintf(("NTDLL: NtQueryValueKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
250 | KeyHandle,
|
---|
251 | ValueName,
|
---|
252 | KeyValueInformationClass,
|
---|
253 | KeyValueInformation,
|
---|
254 | Length,
|
---|
255 | ResultLength));
|
---|
256 |
|
---|
257 | return 0;
|
---|
258 | }
|
---|
259 |
|
---|
260 |
|
---|
261 | /******************************************************************************
|
---|
262 | * NtReplaceKey [NTDLL]
|
---|
263 | * ZwReplaceKey
|
---|
264 | */
|
---|
265 | NTSTATUS WINAPI NtReplaceKey(POBJECT_ATTRIBUTES ObjectAttributes,
|
---|
266 | HANDLE Key,
|
---|
267 | POBJECT_ATTRIBUTES ReplacedObjectAttributes)
|
---|
268 | {
|
---|
269 | dprintf(("NTDLL: NtReplaceKey(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
270 | ObjectAttributes,
|
---|
271 | Key,
|
---|
272 | ReplacedObjectAttributes));
|
---|
273 |
|
---|
274 | return 0;
|
---|
275 | }
|
---|
276 |
|
---|
277 |
|
---|
278 | /******************************************************************************
|
---|
279 | * NtRestoreKey [NTDLL]
|
---|
280 | * ZwRestoreKey
|
---|
281 | */
|
---|
282 | NTSTATUS WINAPI NtRestoreKey(HANDLE KeyHandle,
|
---|
283 | HANDLE FileHandle,
|
---|
284 | ULONG RestoreFlags)
|
---|
285 | {
|
---|
286 | dprintf(("NTDLL: NtRestoreKey(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
287 | KeyHandle,
|
---|
288 | FileHandle,
|
---|
289 | RestoreFlags));
|
---|
290 |
|
---|
291 | return 0;
|
---|
292 | }
|
---|
293 |
|
---|
294 |
|
---|
295 | /******************************************************************************
|
---|
296 | * NtSaveKey [NTDLL]
|
---|
297 | * ZwSaveKey
|
---|
298 | */
|
---|
299 | NTSTATUS WINAPI NtSaveKey(HANDLE KeyHandle,
|
---|
300 | HANDLE FileHandle)
|
---|
301 | {
|
---|
302 | dprintf(("NTDLL NtSaveKey(%08xh,%08xh) not implemented.\n",
|
---|
303 | KeyHandle,
|
---|
304 | FileHandle));
|
---|
305 |
|
---|
306 | return 0;
|
---|
307 | }
|
---|
308 |
|
---|
309 |
|
---|
310 | /******************************************************************************
|
---|
311 | * NtSetInformationKey [NTDLL]
|
---|
312 | * ZwSetInformationKey
|
---|
313 | */
|
---|
314 | NTSTATUS WINAPI NtSetInformationKey(HANDLE KeyHandle,
|
---|
315 | const int KeyInformationClass,
|
---|
316 | PVOID KeyInformation,
|
---|
317 | ULONG KeyInformationLength)
|
---|
318 | {
|
---|
319 | dprintf(("NTDLL: NtSetInformationKey(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
320 | KeyHandle,
|
---|
321 | KeyInformationClass,
|
---|
322 | KeyInformation,
|
---|
323 | KeyInformationLength));
|
---|
324 |
|
---|
325 | return 0;
|
---|
326 | }
|
---|
327 |
|
---|
328 |
|
---|
329 | /******************************************************************************
|
---|
330 | * NtSetValueKey [NTDLL]
|
---|
331 | * ZwSetValueKey
|
---|
332 | */
|
---|
333 | NTSTATUS WINAPI NtSetValueKey(HANDLE KeyHandle,
|
---|
334 | PUNICODE_STRING ValueName,
|
---|
335 | ULONG TitleIndex,
|
---|
336 | ULONG Type,
|
---|
337 | PVOID Data,
|
---|
338 | ULONG DataSize)
|
---|
339 | {
|
---|
340 | dprintf(("NTDLL: NtSetValueKey(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
341 | KeyHandle,
|
---|
342 | ValueName,
|
---|
343 | TitleIndex,
|
---|
344 | Type,
|
---|
345 | Data,
|
---|
346 | DataSize));
|
---|
347 |
|
---|
348 | return (0);
|
---|
349 | }
|
---|
350 |
|
---|
351 |
|
---|
352 | /******************************************************************************
|
---|
353 | * NtUnloadKey [NTDLL]
|
---|
354 | * ZwUnloadKey
|
---|
355 | */
|
---|
356 | NTSTATUS WINAPI NtUnloadKey(HANDLE KeyHandle)
|
---|
357 | {
|
---|
358 | dprintf(("NTDLL: NtUnloadKey(%08xh) not implemented.\n",
|
---|
359 | KeyHandle));
|
---|
360 |
|
---|
361 | return 0;
|
---|
362 | }
|
---|