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

Last change on this file since 97 was 97, checked in by phaller, 26 years ago

Add: added cvs variable $Id$ to source files.

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