source: trunk/src/NTDLL/reg.cpp@ 51

Last change on this file since 51 was 51, checked in by sandervl, 26 years ago

* empty log message *

File size: 10.8 KB
Line 
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 */
20NTSTATUS 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 */
45NTSTATUS 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 */
58NTSTATUS 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 */
73NTSTATUS 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 */
96NTSTATUS 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 */
119NTSTATUS 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 */
132NTSTATUS 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 */
147NTSTATUS 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 */
181NTSTATUS 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 */
197NTSTATUS 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
219NTSTATUS 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 */
242NTSTATUS 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 */
265NTSTATUS 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 */
282NTSTATUS 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 */
299NTSTATUS 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 */
314NTSTATUS 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 */
333NTSTATUS 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 */
356NTSTATUS WINAPI NtUnloadKey(HANDLE KeyHandle)
357{
358 dprintf(("NTDLL: NtUnloadKey(%08xh) not implemented.\n",
359 KeyHandle));
360
361 return 0;
362}
Note: See TracBrowser for help on using the repository browser.