source: trunk/src/NTDLL/unknown.c@ 9807

Last change on this file since 9807 was 9684, checked in by sandervl, 23 years ago

PF: Changes for building dll with GCC

File size: 11.2 KB
Line 
1/* $Id: unknown.c,v 1.1 2003-01-16 15:22:42 sandervl Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 * Win32 NT Runtime / NTDLL for OS/2
6 * Copyright 1998, 1999 Patrick Haller (phaller@gmx.net)
7 * NT basis DLL
8 */
9
10
11/*****************************************************************************
12 * Includes *
13 *****************************************************************************/
14
15#include <windows.h>
16#include <dbglog.h>
17#include "winternl.h"
18#include "wine/port.h"
19
20/*****************************************************************************
21 * Types & Defines *
22 *****************************************************************************/
23
24
25/*****************************************************************************
26 * Name : NTSTATUS NtAllocateUuids
27 * Purpose : unknown
28 * Parameters: unknown, probably wrong
29 * Variables :
30 * Result :
31 * Remark : NTDLL.59
32 * Status : UNTESTED STUB
33 *
34 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
35 *****************************************************************************/
36
37NTSTATUS WIN32API NtAllocateUuids(DWORD x1,
38 DWORD x2,
39 DWORD x3,
40 DWORD x4)
41{
42 dprintf(("NTDLL: NtAllocateUuids(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
43 x1,
44 x2,
45 x3,
46 x4));
47
48 return 0;
49}
50
51
52/*****************************************************************************
53 * Name : _alldiv
54 * Purpose : unknown
55 * Parameters: unknown, probably wrong
56 * Variables :
57 * Result :
58 * Remark : NTDLL.?
59 * Status : UNTESTED STUB
60 *
61 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
62 *****************************************************************************/
63
64DWORD CDECL OS2_alldiv(DWORD x1,
65 DWORD x2)
66{
67 dprintf(("NTDLL: _alldiv(%08xh,%08xh) not implemented.\n",
68 x1,
69 x2));
70
71 return (x1 / x2);
72}
73
74
75/*****************************************************************************
76 * Name : _allmul
77 * Purpose : unknown
78 * Parameters: unknown, probably wrong
79 * Variables :
80 * Result :
81 * Remark : NTDLL.?
82 * Status : UNTESTED STUB
83 *
84 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
85 *****************************************************************************/
86
87DWORD CDECL OS2_allmul(DWORD x1,
88 DWORD x2)
89{
90 dprintf(("NTDLL: _allmul(%08xh,%08xh) not implemented.\n",
91 x1,
92 x2));
93
94 return (x1 * x2);
95}
96
97
98/*****************************************************************************
99 * Name : RtlLargeIntegerToChar
100 * Purpose : unknown
101 * Parameters: unknown, probably wrong
102 * Variables :
103 * Result :
104 * Remark : NTDLL.?
105 * Status : UNTESTED STUB
106 *
107 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
108 *****************************************************************************/
109
110DWORD WIN32API RtlLargeIntegerToChar(LARGE_INTEGER li,
111 LPWSTR retstr,
112 DWORD retlen)
113{
114 dprintf(("NTDLL: RtlLargeIntegerToChar(%08xh,%08xh,%08xh) not implemented.\n",
115 li,
116 retstr,
117 retlen));
118
119 return 0;
120}
121
122
123
124/*****************************************************************************
125 * Name : NtAlertThread
126 * Purpose : unknown
127 * Parameters: unknown, probably wrong
128 * Variables :
129 * Result :
130 * Remark : NTDLL.?
131 * Status : UNTESTED STUB
132 *
133 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
134 *****************************************************************************/
135
136DWORD WIN32API NtAlertThread(DWORD x1,
137 DWORD x2)
138{
139 dprintf(("NTDLL: NtAlertThread(%08xh,%08xh) not implemented.\n",
140 x1,
141 x2));
142
143 return 0;
144}
145
146
147/*****************************************************************************
148 * Name : NtTestAlert
149 * Purpose : unknown
150 * Parameters: unknown, probably wrong
151 * Variables :
152 * Result :
153 * Remark : NTDLL.?
154 * Status : UNTESTED STUB
155 *
156 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
157 *****************************************************************************/
158
159DWORD WIN32API NtTestAlert(DWORD x1,
160 DWORD x2)
161{
162 dprintf(("NTDLL: NtTestAlert(%08xh,%08xh) not implemented.\n",
163 x1,
164 x2));
165
166 return 0;
167}
168
169
170
171/*****************************************************************************
172 * Name : NtWriteRequestData
173 * Purpose : unknown
174 * Parameters: unknown, probably wrong
175 * Variables :
176 * Result :
177 * Remark : NTDLL.?
178 * Status : UNTESTED STUB
179 *
180 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
181 *****************************************************************************/
182
183DWORD WIN32API NtWriteRequestData(DWORD x1,
184 DWORD x2,
185 DWORD x3,
186 DWORD x4,
187 DWORD x5)
188{
189 dprintf(("NTDLL: NtWriteRequestData(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
190 x1,
191 x2,
192 x3,
193 x4,
194 x5));
195
196 return 0;
197}
198
199
200/*****************************************************************************
201 * Name : NtImpersonateClientOfPort
202 * Purpose : unknown
203 * Parameters: unknown, probably wrong
204 * Variables :
205 * Result :
206 * Remark : NTDLL.?
207 * Status : UNTESTED STUB
208 *
209 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
210 *****************************************************************************/
211
212DWORD WIN32API NtImpersonateClientOfPort(DWORD x1,
213 DWORD x2,
214 DWORD x3,
215 DWORD x4)
216{
217 dprintf(("NTDLL: NtImpersonateClientOfPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
218 x1,
219 x2,
220 x3,
221 x4));
222
223 return 0;
224}
225
226
227/*****************************************************************************
228 * Name : NtReplyWaitReplyPort
229 * Purpose : unknown
230 * Parameters: unknown, probably wrong
231 * Variables :
232 * Result :
233 * Remark : NTDLL.?
234 * Status : UNTESTED STUB
235 *
236 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
237 *****************************************************************************/
238
239DWORD WIN32API NtReplyWaitReplyPort(DWORD x1,
240 DWORD x2,
241 DWORD x3,
242 DWORD x4)
243{
244 dprintf(("NTDLL: NtReplyWaitReplyPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
245 x1,
246 x2,
247 x3,
248 x4));
249
250 return 0;
251}
252
253
254/*****************************************************************************
255 * Name : NtReadRequestData
256 * Purpose : unknown
257 * Parameters: unknown, probably wrong
258 * Variables :
259 * Result :
260 * Remark : NTDLL.?
261 * Status : UNTESTED STUB
262 *
263 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
264 *****************************************************************************/
265
266DWORD WIN32API NtReadRequestData(DWORD x1,
267 DWORD x2,
268 DWORD x3,
269 DWORD x4,
270 DWORD x5)
271{
272 dprintf(("NTDLL: NtReadRequestData(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
273 x1,
274 x2,
275 x3,
276 x4,
277 x5));
278
279 return 0;
280}
281
282
283/*****************************************************************************
284 * Name : NtRequestPort
285 * Purpose : unknown
286 * Parameters: unknown, probably wrong
287 * Variables :
288 * Result :
289 * Remark : NTDLL.?
290 * Status : UNTESTED STUB
291 *
292 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
293 *****************************************************************************/
294
295DWORD WIN32API NtRequestPort(DWORD x1,
296 DWORD x2,
297 DWORD x3,
298 DWORD x4)
299{
300 dprintf(("NTDLL: NtRequestPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
301 x1,
302 x2,
303 x3,
304 x4));
305
306 return 0;
307}
308
309
310/*****************************************************************************
311 * Name : NtReplyPort
312 * Purpose : unknown
313 * Parameters: unknown, probably wrong
314 * Variables :
315 * Result :
316 * Remark : NTDLL.?
317 * Status : UNTESTED STUB
318 *
319 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
320 *****************************************************************************/
321
322DWORD WIN32API NtReplyPort(DWORD x1,
323 DWORD x2,
324 DWORD x3,
325 DWORD x4)
326{
327 dprintf(("NTDLL: NtReplyPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
328 x1,
329 x2,
330 x3,
331 x4));
332
333 return 0;
334}
335
336
337
338/**************************************************************************
339 * NTDLL_chkstk [NTDLL.862]
340 * NTDLL_alloca_probe [NTDLL.861]
341 * Glorified "enter xxxx".
342 */
343extern void CDECL _chkstk(DWORD x1);
344extern void CDECL _alloca_probe(DWORD x1);
345
346
347/*****************************************************************************
348 * Name : RtlConvertSidToUnicodeString
349 * Purpose : unknown
350 * Parameters: unknown, probably wrong
351 * Variables :
352 * Result :
353 * Remark : NTDLL.?
354 * Status : UNTESTED STUB
355 *
356 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
357 *****************************************************************************/
358
359DWORD WIN32API RtlConvertSidToUnicodeString(DWORD x1,
360 DWORD x2,
361 DWORD x3)
362{
363 dprintf(("NTDLL: RtlConvertSidToUnicodeString(%08xh,%08xh,%08xh) not implemented.\n",
364 x1,
365 x2,
366 x3));
367
368 return 0;
369}
370
371
372/*****************************************************************************
373 * Name : RtlRandom
374 * Purpose : unknown
375 * Parameters: unknown, probably wrong
376 * Variables :
377 * Result :
378 * Remark : NTDLL.466
379 * Status : UNTESTED STUB
380 *
381 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
382 *****************************************************************************/
383
384DWORD WIN32API RtlRandom(DWORD x1)
385{
386 dprintf(("NTDLL: RtlRandom(%08xh) not implemented.\n",
387 x1));
388
389 return rand();
390}
391
392
393/**
394 * Opens a thread...
395 * @returns Error code?
396 * @param pThreadHandle
397 * @param dwFlags
398 * @param pvAttribs Pointer to some attribute structure.
399 * @param padwOpenThreadParam Pointer to array of dword it seems. 2 entries?
400 * @status stub
401 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no)
402 * @remark http://www.windowsitlibrary.com/Content/356/08/6.html
403 * Used by TaskMgr.exe.
404 */
405DWORD WIN32API NtOpenThread(PHANDLE phThreadHandle, DWORD dwFlags,
406 POBJECT_ATTRIBUTES pAttribs, PDWORD padwOpenThreadParam)
407{
408 dprintf(("NTDLL: RtlRandom(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
409 phThreadHandle, dwFlags, pAttribs, padwOpenThreadParam));
410
411 return ERROR_NOT_SUPPORTED;
412}
413
Note: See TracBrowser for help on using the repository browser.