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