| 1 | /* $Id: unknown.cpp,v 1.7 1999-11-09 09:30:21 phaller 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 <os2win.h>
|
|---|
| 16 | #include <winnt.h>
|
|---|
| 17 | #include <ntdef.h>
|
|---|
| 18 | #include <builtin.h>
|
|---|
| 19 | #include <stdlib.h>
|
|---|
| 20 | #include <string.h>
|
|---|
| 21 | #include <ctype.h>
|
|---|
| 22 | #include "misc.h"
|
|---|
| 23 | #include "unicode.h"
|
|---|
| 24 | #include "ntdll.h"
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /*****************************************************************************
|
|---|
| 28 | * Types & Defines *
|
|---|
| 29 | *****************************************************************************/
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | /*****************************************************************************
|
|---|
| 33 | * Name : NTSTATUS NtAllocateUuids
|
|---|
| 34 | * Purpose : unknown
|
|---|
| 35 | * Parameters: unknown, probably wrong
|
|---|
| 36 | * Variables :
|
|---|
| 37 | * Result :
|
|---|
| 38 | * Remark : NTDLL.59
|
|---|
| 39 | * Status : UNTESTED STUB
|
|---|
| 40 | *
|
|---|
| 41 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 42 | *****************************************************************************/
|
|---|
| 43 |
|
|---|
| 44 | NTSTATUS WIN32API NtAllocateUuids(DWORD x1,
|
|---|
| 45 | DWORD x2,
|
|---|
| 46 | DWORD x3,
|
|---|
| 47 | DWORD x4)
|
|---|
| 48 | {
|
|---|
| 49 | dprintf(("NTDLL: NtAllocateUuids(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 50 | x1,
|
|---|
| 51 | x2,
|
|---|
| 52 | x3,
|
|---|
| 53 | x4));
|
|---|
| 54 |
|
|---|
| 55 | return 0;
|
|---|
| 56 | }
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | /*****************************************************************************
|
|---|
| 60 | * Name : _alldiv
|
|---|
| 61 | * Purpose : unknown
|
|---|
| 62 | * Parameters: unknown, probably wrong
|
|---|
| 63 | * Variables :
|
|---|
| 64 | * Result :
|
|---|
| 65 | * Remark : NTDLL.?
|
|---|
| 66 | * Status : UNTESTED STUB
|
|---|
| 67 | *
|
|---|
| 68 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 69 | *****************************************************************************/
|
|---|
| 70 |
|
|---|
| 71 | DWORD CDECL OS2_alldiv(DWORD x1,
|
|---|
| 72 | DWORD x2)
|
|---|
| 73 | {
|
|---|
| 74 | dprintf(("NTDLL: _alldiv(%08xh,%08xh) not implemented.\n",
|
|---|
| 75 | x1,
|
|---|
| 76 | x2));
|
|---|
| 77 |
|
|---|
| 78 | return (x1 / x2);
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | /*****************************************************************************
|
|---|
| 83 | * Name : _allmul
|
|---|
| 84 | * Purpose : unknown
|
|---|
| 85 | * Parameters: unknown, probably wrong
|
|---|
| 86 | * Variables :
|
|---|
| 87 | * Result :
|
|---|
| 88 | * Remark : NTDLL.?
|
|---|
| 89 | * Status : UNTESTED STUB
|
|---|
| 90 | *
|
|---|
| 91 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 92 | *****************************************************************************/
|
|---|
| 93 |
|
|---|
| 94 | DWORD CDECL OS2_allmul(DWORD x1,
|
|---|
| 95 | DWORD x2)
|
|---|
| 96 | {
|
|---|
| 97 | dprintf(("NTDLL: _allmul(%08xh,%08xh) not implemented.\n",
|
|---|
| 98 | x1,
|
|---|
| 99 | x2));
|
|---|
| 100 |
|
|---|
| 101 | return (x1 * x2);
|
|---|
| 102 | }
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 | /*****************************************************************************
|
|---|
| 106 | * Name : RtlLargeIntegerToChar
|
|---|
| 107 | * Purpose : unknown
|
|---|
| 108 | * Parameters: unknown, probably wrong
|
|---|
| 109 | * Variables :
|
|---|
| 110 | * Result :
|
|---|
| 111 | * Remark : NTDLL.?
|
|---|
| 112 | * Status : UNTESTED STUB
|
|---|
| 113 | *
|
|---|
| 114 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 115 | *****************************************************************************/
|
|---|
| 116 |
|
|---|
| 117 | DWORD WIN32API RtlLargeIntegerToChar(LARGE_INTEGER li,
|
|---|
| 118 | LPWSTR retstr,
|
|---|
| 119 | DWORD retlen)
|
|---|
| 120 | {
|
|---|
| 121 | dprintf(("NTDLL: RtlLargeIntegerToChar(%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 122 | li,
|
|---|
| 123 | retstr,
|
|---|
| 124 | retlen));
|
|---|
| 125 |
|
|---|
| 126 | return 0;
|
|---|
| 127 | }
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 | /*****************************************************************************
|
|---|
| 131 | * Name : RtlQueryTimeZoneInformation
|
|---|
| 132 | * Purpose : unknown
|
|---|
| 133 | * Parameters: unknown, probably wrong
|
|---|
| 134 | * Variables :
|
|---|
| 135 | * Result :
|
|---|
| 136 | * Remark : NTDLL.?
|
|---|
| 137 | * Status : UNTESTED STUB
|
|---|
| 138 | *
|
|---|
| 139 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 140 | *****************************************************************************/
|
|---|
| 141 |
|
|---|
| 142 | DWORD WIN32API RtlQueryTimeZoneInformation(DWORD x1,
|
|---|
| 143 | DWORD x2,
|
|---|
| 144 | DWORD x3)
|
|---|
| 145 | {
|
|---|
| 146 | dprintf(("NTDLL: RtlQueryTimeZoneInformation(%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 147 | x1,
|
|---|
| 148 | x2,
|
|---|
| 149 | x3));
|
|---|
| 150 |
|
|---|
| 151 | return 0;
|
|---|
| 152 | }
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 | /*****************************************************************************
|
|---|
| 156 | * Name : NtAlertThread
|
|---|
| 157 | * Purpose : unknown
|
|---|
| 158 | * Parameters: unknown, probably wrong
|
|---|
| 159 | * Variables :
|
|---|
| 160 | * Result :
|
|---|
| 161 | * Remark : NTDLL.?
|
|---|
| 162 | * Status : UNTESTED STUB
|
|---|
| 163 | *
|
|---|
| 164 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 165 | *****************************************************************************/
|
|---|
| 166 |
|
|---|
| 167 | DWORD WIN32API NtAlertThread(DWORD x1,
|
|---|
| 168 | DWORD x2)
|
|---|
| 169 | {
|
|---|
| 170 | dprintf(("NTDLL: NtAlertThread(%08xh,%08xh) not implemented.\n",
|
|---|
| 171 | x1,
|
|---|
| 172 | x2));
|
|---|
| 173 |
|
|---|
| 174 | return 0;
|
|---|
| 175 | }
|
|---|
| 176 |
|
|---|
| 177 |
|
|---|
| 178 | /*****************************************************************************
|
|---|
| 179 | * Name : NtTestAlert
|
|---|
| 180 | * Purpose : unknown
|
|---|
| 181 | * Parameters: unknown, probably wrong
|
|---|
| 182 | * Variables :
|
|---|
| 183 | * Result :
|
|---|
| 184 | * Remark : NTDLL.?
|
|---|
| 185 | * Status : UNTESTED STUB
|
|---|
| 186 | *
|
|---|
| 187 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 188 | *****************************************************************************/
|
|---|
| 189 |
|
|---|
| 190 | DWORD WIN32API NtTestAlert(DWORD x1,
|
|---|
| 191 | DWORD x2)
|
|---|
| 192 | {
|
|---|
| 193 | dprintf(("NTDLL: NtTestAlert(%08xh,%08xh) not implemented.\n",
|
|---|
| 194 | x1,
|
|---|
| 195 | x2));
|
|---|
| 196 |
|
|---|
| 197 | return 0;
|
|---|
| 198 | }
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 | /*****************************************************************************
|
|---|
| 203 | * Name : NtWriteRequestData
|
|---|
| 204 | * Purpose : unknown
|
|---|
| 205 | * Parameters: unknown, probably wrong
|
|---|
| 206 | * Variables :
|
|---|
| 207 | * Result :
|
|---|
| 208 | * Remark : NTDLL.?
|
|---|
| 209 | * Status : UNTESTED STUB
|
|---|
| 210 | *
|
|---|
| 211 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 212 | *****************************************************************************/
|
|---|
| 213 |
|
|---|
| 214 | DWORD WIN32API NtWriteRequestData(DWORD x1,
|
|---|
| 215 | DWORD x2,
|
|---|
| 216 | DWORD x3,
|
|---|
| 217 | DWORD x4,
|
|---|
| 218 | DWORD x5)
|
|---|
| 219 | {
|
|---|
| 220 | dprintf(("NTDLL: NtWriteRequestData(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 221 | x1,
|
|---|
| 222 | x2,
|
|---|
| 223 | x3,
|
|---|
| 224 | x4,
|
|---|
| 225 | x5));
|
|---|
| 226 |
|
|---|
| 227 | return 0;
|
|---|
| 228 | }
|
|---|
| 229 |
|
|---|
| 230 |
|
|---|
| 231 | /*****************************************************************************
|
|---|
| 232 | * Name : NtImpersonateClientOfPort
|
|---|
| 233 | * Purpose : unknown
|
|---|
| 234 | * Parameters: unknown, probably wrong
|
|---|
| 235 | * Variables :
|
|---|
| 236 | * Result :
|
|---|
| 237 | * Remark : NTDLL.?
|
|---|
| 238 | * Status : UNTESTED STUB
|
|---|
| 239 | *
|
|---|
| 240 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 241 | *****************************************************************************/
|
|---|
| 242 |
|
|---|
| 243 | DWORD WIN32API NtImpersonateClientOfPort(DWORD x1,
|
|---|
| 244 | DWORD x2,
|
|---|
| 245 | DWORD x3,
|
|---|
| 246 | DWORD x4)
|
|---|
| 247 | {
|
|---|
| 248 | dprintf(("NTDLL: NtImpersonateClientOfPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 249 | x1,
|
|---|
| 250 | x2,
|
|---|
| 251 | x3,
|
|---|
| 252 | x4));
|
|---|
| 253 |
|
|---|
| 254 | return 0;
|
|---|
| 255 | }
|
|---|
| 256 |
|
|---|
| 257 |
|
|---|
| 258 | /*****************************************************************************
|
|---|
| 259 | * Name : NtReplyWaitReplyPort
|
|---|
| 260 | * Purpose : unknown
|
|---|
| 261 | * Parameters: unknown, probably wrong
|
|---|
| 262 | * Variables :
|
|---|
| 263 | * Result :
|
|---|
| 264 | * Remark : NTDLL.?
|
|---|
| 265 | * Status : UNTESTED STUB
|
|---|
| 266 | *
|
|---|
| 267 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 268 | *****************************************************************************/
|
|---|
| 269 |
|
|---|
| 270 | DWORD WIN32API NtReplyWaitReplyPort(DWORD x1,
|
|---|
| 271 | DWORD x2,
|
|---|
| 272 | DWORD x3,
|
|---|
| 273 | DWORD x4)
|
|---|
| 274 | {
|
|---|
| 275 | dprintf(("NTDLL: NtReplyWaitReplyPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 276 | x1,
|
|---|
| 277 | x2,
|
|---|
| 278 | x3,
|
|---|
| 279 | x4));
|
|---|
| 280 |
|
|---|
| 281 | return 0;
|
|---|
| 282 | }
|
|---|
| 283 |
|
|---|
| 284 |
|
|---|
| 285 | /*****************************************************************************
|
|---|
| 286 | * Name : NtReadRequestData
|
|---|
| 287 | * Purpose : unknown
|
|---|
| 288 | * Parameters: unknown, probably wrong
|
|---|
| 289 | * Variables :
|
|---|
| 290 | * Result :
|
|---|
| 291 | * Remark : NTDLL.?
|
|---|
| 292 | * Status : UNTESTED STUB
|
|---|
| 293 | *
|
|---|
| 294 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 295 | *****************************************************************************/
|
|---|
| 296 |
|
|---|
| 297 | DWORD WIN32API NtReadRequestData(DWORD x1,
|
|---|
| 298 | DWORD x2,
|
|---|
| 299 | DWORD x3,
|
|---|
| 300 | DWORD x4,
|
|---|
| 301 | DWORD x5)
|
|---|
| 302 | {
|
|---|
| 303 | dprintf(("NTDLL: NtReadRequestData(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 304 | x1,
|
|---|
| 305 | x2,
|
|---|
| 306 | x3,
|
|---|
| 307 | x4,
|
|---|
| 308 | x5));
|
|---|
| 309 |
|
|---|
| 310 | return 0;
|
|---|
| 311 | }
|
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 | /*****************************************************************************
|
|---|
| 315 | * Name : NtRequestPort
|
|---|
| 316 | * Purpose : unknown
|
|---|
| 317 | * Parameters: unknown, probably wrong
|
|---|
| 318 | * Variables :
|
|---|
| 319 | * Result :
|
|---|
| 320 | * Remark : NTDLL.?
|
|---|
| 321 | * Status : UNTESTED STUB
|
|---|
| 322 | *
|
|---|
| 323 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 324 | *****************************************************************************/
|
|---|
| 325 |
|
|---|
| 326 | DWORD WIN32API NtRequestPort(DWORD x1,
|
|---|
| 327 | DWORD x2,
|
|---|
| 328 | DWORD x3,
|
|---|
| 329 | DWORD x4)
|
|---|
| 330 | {
|
|---|
| 331 | dprintf(("NTDLL: NtRequestPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 332 | x1,
|
|---|
| 333 | x2,
|
|---|
| 334 | x3,
|
|---|
| 335 | x4));
|
|---|
| 336 |
|
|---|
| 337 | return 0;
|
|---|
| 338 | }
|
|---|
| 339 |
|
|---|
| 340 |
|
|---|
| 341 | /*****************************************************************************
|
|---|
| 342 | * Name : NtReplyPort
|
|---|
| 343 | * Purpose : unknown
|
|---|
| 344 | * Parameters: unknown, probably wrong
|
|---|
| 345 | * Variables :
|
|---|
| 346 | * Result :
|
|---|
| 347 | * Remark : NTDLL.?
|
|---|
| 348 | * Status : UNTESTED STUB
|
|---|
| 349 | *
|
|---|
| 350 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 351 | *****************************************************************************/
|
|---|
| 352 |
|
|---|
| 353 | DWORD WIN32API NtReplyPort(DWORD x1,
|
|---|
| 354 | DWORD x2,
|
|---|
| 355 | DWORD x3,
|
|---|
| 356 | DWORD x4)
|
|---|
| 357 | {
|
|---|
| 358 | dprintf(("NTDLL: NtReplyPort(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 359 | x1,
|
|---|
| 360 | x2,
|
|---|
| 361 | x3,
|
|---|
| 362 | x4));
|
|---|
| 363 |
|
|---|
| 364 | return 0;
|
|---|
| 365 | }
|
|---|
| 366 |
|
|---|
| 367 |
|
|---|
| 368 |
|
|---|
| 369 | /**************************************************************************
|
|---|
| 370 | * NTDLL_chkstk [NTDLL.862]
|
|---|
| 371 | * NTDLL_alloca_probe [NTDLL.861]
|
|---|
| 372 | * Glorified "enter xxxx".
|
|---|
| 373 | */
|
|---|
| 374 | extern void CDECL _chkstk(DWORD x1);
|
|---|
| 375 | extern void CDECL _alloca_probe(DWORD x1);
|
|---|
| 376 |
|
|---|
| 377 |
|
|---|
| 378 | /*****************************************************************************
|
|---|
| 379 | * Name : RtlConvertSidToUnicodeString
|
|---|
| 380 | * Purpose : unknown
|
|---|
| 381 | * Parameters: unknown, probably wrong
|
|---|
| 382 | * Variables :
|
|---|
| 383 | * Result :
|
|---|
| 384 | * Remark : NTDLL.?
|
|---|
| 385 | * Status : UNTESTED STUB
|
|---|
| 386 | *
|
|---|
| 387 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 388 | *****************************************************************************/
|
|---|
| 389 |
|
|---|
| 390 | DWORD WIN32API RtlConvertSidToUnicodeString(DWORD x1,
|
|---|
| 391 | DWORD x2,
|
|---|
| 392 | DWORD x3)
|
|---|
| 393 | {
|
|---|
| 394 | dprintf(("NTDLL: RtlConvertSidToUnicodeString(%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 395 | x1,
|
|---|
| 396 | x2,
|
|---|
| 397 | x3));
|
|---|
| 398 |
|
|---|
| 399 | return 0;
|
|---|
| 400 | }
|
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 | /*****************************************************************************
|
|---|
| 404 | * Name : RtlRandom
|
|---|
| 405 | * Purpose : unknown
|
|---|
| 406 | * Parameters: unknown, probably wrong
|
|---|
| 407 | * Variables :
|
|---|
| 408 | * Result :
|
|---|
| 409 | * Remark : NTDLL.466
|
|---|
| 410 | * Status : UNTESTED STUB
|
|---|
| 411 | *
|
|---|
| 412 | * Author : Patrick Haller [Tue, 1999/06/01 09:00]
|
|---|
| 413 | *****************************************************************************/
|
|---|
| 414 |
|
|---|
| 415 | DWORD WIN32API RtlRandom(DWORD x1)
|
|---|
| 416 | {
|
|---|
| 417 | dprintf(("NTDLL: RtlRandom(%08xh) not implemented.\n",
|
|---|
| 418 | x1));
|
|---|
| 419 |
|
|---|
| 420 | return rand();
|
|---|
| 421 | }
|
|---|
| 422 |
|
|---|