source: trunk/src/kernel32/stubs.cpp@ 2229

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

registry tree added + getsystempowerstatus implemented

File size: 128.5 KB
Line 
1/* $Id: stubs.cpp,v 1.16 1999-12-28 19:16:35 sandervl Exp $ */
2
3/*
4 * Win32 KERNEL32 Subsystem for OS/2
5 *
6 * 1998/05/19 PH Patrick Haller (haller@zebra.fh-weingarten.de)
7 *
8 * @(#) Stubs.H 1.0.0 1998/05/19 PH start
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 *
12 */
13
14/*****************************************************************************
15 * Includes *
16 *****************************************************************************/
17#include <os2win.h>
18#include <winnls.h>
19#include "unicode.h"
20#include <builtin.h>
21#include "handlemanager.h"
22#include <string.h>
23
24#include "stubs.h"
25
26
27/*****************************************************************************
28 * Defines *
29 *****************************************************************************/
30
31
32// For DefineDosDevice
33
34#define DDD_RAW_TARGET_PATH 0x00000001
35#define DDD_REMOVE_DEFINITION 0x00000002
36#define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
37#define DDD_NO_BROADCAST_SYSTEM 0x00000008
38
39
40// For Backup functions
41
42//
43// Stream Ids
44//
45
46#define BACKUP_INVALID 0x00000000
47#define BACKUP_DATA 0x00000001
48#define BACKUP_EA_DATA 0x00000002
49#define BACKUP_SECURITY_DATA 0x00000003
50#define BACKUP_ALTERNATE_DATA 0x00000004
51#define BACKUP_LINK 0x00000005
52#define BACKUP_PROPERTY_DATA 0x00000006
53
54//
55// Stream Attributes
56//
57
58#define STREAM_NORMAL_ATTRIBUTE 0x00000000
59#define STREAM_MODIFIED_WHEN_READ 0x00000001
60#define STREAM_CONTAINS_SECURITY 0x00000002
61#define STREAM_CONTAINS_PROPERTIES 0x00000004
62
63// Named Pipes
64
65#define NMPWAIT_WAIT_FOREVER 0xffffffff
66#define NMPWAIT_NOWAIT 0x00000001
67#define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
68
69
70// Locale
71#define LCID DWORD
72
73/*
74 * Locale Dependent Mapping Flags.
75 */
76
77#define LCMAP_LOWERCASE 0x00000100 /* lower case letters */
78#define LCMAP_UPPERCASE 0x00000200 /* upper case letters */
79#define LCMAP_SORTKEY 0x00000400 /* WC sort key (normalize) */
80#define LCMAP_BYTEREV 0x00000800 /* byte reversal */
81
82#define LCMAP_HIRAGANA 0x00100000 /* map katakana to hiragana */
83#define LCMAP_KATAKANA 0x00200000 /* map hiragana to katakana */
84#define LCMAP_HALFWIDTH 0x00400000 /* map double byte to single byte */
85#define LCMAP_FULLWIDTH 0x00800000 /* map single byte to double byte */
86
87#define LCMAP_LINGUISTIC_CASING 0x01000000 /* use linguistic rules for casing */
88
89#define LCMAP_SIMPLIFIED_CHINESE 0x02000000 /* map traditional chinese to simplified chinese */
90#define LCMAP_TRADITIONAL_CHINESE 0x04000000 /* map simplified chinese to traditional chinese */
91
92
93
94/*
95 * Locale Enumeration Flags.
96 */
97#define LCID_INSTALLED 0x00000001 /* installed locale ids */
98#define LCID_SUPPORTED 0x00000002 /* supported locale ids */
99
100
101
102// For FindFirstFileEx
103
104#define FIND_FIRST_EX_CASE_SENSITIVE 0x00000001
105
106/*****************************************************************************
107 * Structures *
108 *****************************************************************************/
109
110 // For FindFirstFileEx
111
112typedef enum _FINDEX_INFO_LEVELS {
113 FindExInfoStandard,
114 FindExInfoMaxInfoLevel
115} FINDEX_INFO_LEVELS;
116
117typedef enum _FINDEX_SEARCH_OPS {
118 FindExSearchNameMatch,
119 FindExSearchLimitToDirectories,
120 FindExSearchLimitToDevices,
121 FindExSearchMaxSearchOp
122} FINDEX_SEARCH_OPS;
123
124 // For Backup funtions
125
126typedef struct _WIN32_STREAM_ID {
127
128 DWORD dwStreamId;
129 DWORD dwStreamAttributes;
130 LARGE_INTEGER Size;
131 DWORD dwStreamNameSize;
132// WCHAR cStreamName[ ] ; /* @@@PH */
133 WCHAR cStreamName[1] ;
134} WIN32_STREAM_ID;
135
136
137//
138// File structures
139//
140
141//typedef struct _OVERLAPPED {
142// DWORD Internal;
143// DWORD InternalHigh;
144// DWORD Offset;
145// DWORD OffsetHigh;
146// HANDLE hEvent;
147//} OVERLAPPED, *LPOVERLAPPED;
148
149//typedef struct _SECURITY_ATTRIBUTES {
150// DWORD nLength;
151// LPVOID lpSecurityDescriptor;
152// BOOL bInheritHandle;
153//} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
154
155//typedef struct _PROCESS_INFORMATION {
156// HANDLE hProcess;
157// HANDLE hThread;
158// DWORD dwProcessId;
159// DWORD dwThreadId;
160//} PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION;
161
162// For Fiber functions
163
164typedef VOID (WINAPI *PFIBER_START_ROUTINE)(
165 LPVOID lpFiberParameter
166 );
167typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE;
168
169// For Enum CalendarInfo & EnumSystemCodePages see winnls.h
170
171/*
172 * Calendar type constant.
173 */
174typedef DWORD CALTYPE;
175
176/*
177 * Calendar ID.
178 */
179typedef DWORD CALID;
180
181
182/*****************************************************************************
183 * Prototypes *
184 *****************************************************************************/
185
186
187/*****************************************************************************
188 * Name : BOOL WIN32API AreFileApisANSI (VOID)
189 * Purpose : The AreFileApisANSI function determines whether a set of Win32
190 * file functions is using the ANSI or OEM character set code page.
191 * This function is useful for 8-bit console input and output
192 * operations.
193 * Parameters: NONE
194 * Variables :
195 * Result : If the set of Win32 file functions is using the ANSI code page,
196 * the return value is nonzero.
197 * If the set of Win32 file functions is using the OEM code page,
198 * the return value is zero.
199 * Remark :
200 * Status : UNTESTED STUB
201 *
202 * Author : Markus Montkowski [Thu, 1998/02/19 11:46]
203 *****************************************************************************/
204
205BOOL WIN32API AreFileApisANSI (VOID)
206{
207
208 dprintf(("KERNEL32:AreFileApisANSI() not implemented - TRUE\n"
209 ));
210
211 return (TRUE);
212}
213
214/*****************************************************************************
215 * Name : BOOL WIN32API BackupRead(
216 * Purpose : The BackupRead function reads data associated with a specified
217 * file or directory into a buffer. You use this function to back
218 * up a file or directory.
219 * Parameters: HANDLE hFile handle to file or directory
220 * LPBYTE lpBuffer pointer to buffer to read to
221 * DWORD nNumberOfBytesToRead number of bytes to read
222 * LPDWORD lpNumberOfBytesRead pointer to variable to receive
223 * number of bytes read
224 * BOOL bAbort termination type
225 * BOOL bProcessSecurity process security flag
226 * LPVOID *lpContext pointer to pointer to internal
227 * context information
228 * Variables :
229 * Result : 0 on Error Nonzero if OK
230 * Remark : BackupRead processes all of the data pertaining to an opened
231 * object as a series of discrete byte streams. Each stream is
232 * preceded by a 32-bit aligned WIN32_STREAM_ID structure.
233 * Streams must be processed in the same order in which they were
234 * written to the tape. This ordering enables applications to
235 * compare the data backed up against the data on the source device.
236 * The data returned by BackupRead is to be used only as input to
237 * the BackupWrite function. This data is returned as one large data
238 * stream divided into substreams. The substreams are separated
239 * by WIN32_STREAM_ID headers.
240 *
241 * If an error occurs while BackupRead is reading, the calling
242 * process can skip the bad data by calling the BackupSeek function.
243 * Status : UNTESTED STUB
244 *
245 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
246 *****************************************************************************/
247
248BOOL WIN32API BackupRead(
249 HANDLE hFile, // handle to file or directory
250 LPBYTE lpBuffer, // pointer to buffer to read to
251 DWORD nNumberOfBytesToRead, // number of bytes to read
252 LPDWORD lpNumberOfBytesRead, // pointer to variable to receive number of bytes read
253 BOOL bAbort, // termination type
254 BOOL bProcessSecurity, // process security flag
255 LPVOID *lpContext // pointer to pointer to internal context information
256)
257{
258
259 dprintf(("KERNEL32:BackupRead(%08x,%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
260 hFile, lpBuffer, nNumberOfBytesToRead, lpNumberOfBytesRead,
261 bAbort, bProcessSecurity, lpContext
262 ));
263
264 return (FALSE);
265}
266/*****************************************************************************
267 * Name : BOOL WIN32API BackupSeek()
268 * Purpose : The BackupSeek function seeks forward in a data stream initially
269 * accessed by using the BackupRead or BackupWrite function.
270 * Parameters: HANDLE hFile handle to open file
271 * DWORD dwLowBytesToSeek low-order 32 bits of number of bytes
272 * DWORD dwHighBytesToSeek high-order 32 bits of number of bytes
273 * LPDWORD lpdwLowByteSeeked pointer to number of bytes function seeks
274 * LPDWORD lpdwHighByteSeeked pointer to number of bytes function seeks
275 * LPVOID *lpContext pointer to internal context information
276 *
277 * Variables :
278 * Result : If the function could seek the requested amount, the function
279 * returns nonzero.
280 * If the function could not seek the requested amount, the function
281 * returns zero.
282 * Remark : Applications use the BackUpSeek function to skip portions of a
283 * data stream that cause errors. This function does not seek across
284 * stream headers. If an application attempts to seek past the end
285 * of a substream, the function fails, the lpdwLowByteSeeked and
286 * lpdwHighByteSeeked parameters indicate the actual number of bytes
287 * the function seeks, and the file position is placed at the start
288 * of the next stream header.
289 * Status : UNTESTED STUB
290 *
291 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
292 *****************************************************************************/
293
294BOOL WIN32API BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek,
295 DWORD dwHighBytesToSeek,
296 LPDWORD lpdwLowByteSeeked,
297 LPDWORD lpdwHighByteSeeked,LPVOID *lpContext)
298{
299
300 dprintf(("KERNEL32:BackupSeek(%08x,%08x,%08x,%08x,%08x,08x) not implemented\n",
301 hFile, dwLowBytesToSeek,dwHighBytesToSeek,
302 lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext));
303
304 return (FALSE);
305}
306
307/*****************************************************************************
308 * Name : BOOL WIN32API BackupWrite
309 * Purpose : The BackupWrite function writes a stream of data from a buffer to
310 * a specified file or directory. The data must be divided into
311 * substreams separated by WIN32_STREAM_ID structures. You use this
312 * function to restore a file or directory that has been backed up.
313 * Parameters: HANDLE hFile handle to file or directory
314 * LPBYTE lpBuffer pointer to buffer containing data
315 * to write
316 * DWORD nNumberOfBytesToWrite number of bytes to write
317 * LPDWORD lpNumberOfBytesWritten pointer to variable to receive
318 * number of bytes written
319 * BOOL bAbort termination type
320 * BOOL bProcessSecurity process security
321 * LPVOID *lpContext pointer to pointer to internal
322 * context information
323 *
324 * Variables :
325 * Result : If the function succeeds, the return value is nonzero.
326 * If the function fails, the return value is zero,
327 * indicating that an I/O error occurred.
328 * To get extended error information, call GetLastError.
329 * Remark :
330 * Status : UNTESTED STUB
331 *
332 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
333 *****************************************************************************/
334
335BOOL WIN32API BackupWrite( HANDLE hFile, LPBYTE lpBuffer,
336 DWORD nNumberOfBytesToWrite,
337 LPDWORD lpNumberOfBytesWritten,
338 BOOL bAbort, BOOL bProcessSecurity,
339 LPVOID *lpContext)
340{
341
342 dprintf(("KERNEL32:BackupWrite(%08x,%0x8,%08x,%08x,%08x,%08x,%08x) not implemented\n",
343 hFile, lpBuffer, nNumberOfBytesToWrite,
344 lpNumberOfBytesWritten, bAbort, bProcessSecurity, lpContext));
345
346 return (FALSE);
347}
348
349/*****************************************************************************
350 * Name : HANDLE WIN32API BeginUpdateResourceA
351 * Purpose : The BeginUpdateResource function returns a handle that can be
352 * used by the UpdateResource function to add, delete, or replace
353 * resources in an executable file.
354 * Parameters: LPCSTR pFileName pointer to file in which to
355 * update resources
356 * BOOL bDeleteExistingResources deletion option
357 *
358 * Variables :
359 * Result : If the function succeeds, the return value is a handle that can
360 * be used by the UpdateResource and EndUpdateResource functions.
361 * The return value is NULL if the specified file is not an
362 * executable file, the executable file is already loaded,
363 * the file does not exist, or the file cannot be opened for writing.
364 * To get extended error information, call GetLastError
365 * Remark :
366 * Status : UNTESTED STUB
367 *
368 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
369 *****************************************************************************/
370
371HANDLE WIN32API BeginUpdateResourceA( LPCSTR pFileName,
372 BOOL bDeleteExistingResources)
373{
374
375 dprintf(("KERNEL32: BeginUpdateResource(%08x,%08x) not implemented\n",
376 pFileName, bDeleteExistingResources
377 ));
378
379 return (NULL);
380}
381
382/*****************************************************************************
383 * Name : HANDLE WIN32API BeginUpdateResourceW
384 * Purpose : The BeginUpdateResource function returns a handle that can be
385 * used by the UpdateResource function to add, delete, or replace
386 * resources in an executable file.
387 * Parameters: LPCWSTR pFileName pointer to file in which to
388 * update resources
389 * BOOL bDeleteExistingResources deletion option
390 *
391 * Variables :
392 * Result : If the function succeeds, the return value is a handle that can
393 * be used by the UpdateResource and EndUpdateResource functions.
394 * The return value is NULL if the specified file is not an
395 * executable file, the executable file is already loaded,
396 * the file does not exist, or the file cannot be opened for writing.
397 * To get extended error information, call GetLastError
398 * Remark :
399 * Status : UNTESTED STUB
400 *
401 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
402 *****************************************************************************/
403
404HANDLE WIN32API BeginUpdateResourceW( LPCWSTR pFileName,
405 BOOL bDeleteExistingResources)
406{
407
408 dprintf(("KERNEL32: BeginUpdateResource(%08x,%08x) not implemented\n",
409 pFileName, bDeleteExistingResources
410 ));
411
412 return (NULL);
413}
414
415/*****************************************************************************
416 * Name : BOOL WIN32AOI CallNamedPipeA
417 * Purpose : The CallNamedPipe function connects to a message-type pipe
418 * (and waits if an instance of the pipe is not available),
419 * writes to and reads from the pipe, and then closes the pipe.
420 * Parameters: LPCSTR lpNamedPipeName pointer to pipe name
421 * LPVOID lpInBuffer pointer to write buffer
422 * DWORD nInBufferSize size, in bytes, of write buffer
423 * LPVOID lpOutBuffer pointer to read buffer
424 * DWORD nOutBufferSize size, in bytes, of read buffer
425 * LPDWORD lpBytesRead pointer to number of bytes read
426 * DWORD nTimeOut time-out time, in milliseconds
427 * Variables :
428 * Result : If the function succeeds, the return value is nonzero.
429 * If the function fails, the return value is zero.
430 * To get extended error information, call GetLastError.
431 * Remark : Calling CallNamedPipe is equivalent to calling the CreateFile
432 * (or WaitNamedPipe, if CreateFile cannot open the pipe immediately),
433 * TransactNamedPipe, and CloseHandle functions. CreateFile is called
434 * with an access flag of GENERIC_READ | GENERIC_WRITE, an inherit
435 * handle flag of FALSE, and a share mode of zero (indicating no
436 * sharing of this pipe instance).
437 * If the message written to the pipe by the server process is
438 * longer than nOutBufferSize, CallNamedPipe returns FALSE, and
439 * GetLastError returns ERROR_MORE_DATA. The remainder of the
440 * message is discarded, because CallNamedPipe closes the handle
441 * to the pipe before returning.
442 *
443 * CallNamedPipe fails if the pipe is a byte-type pipe.
444 * Status : UNTESTED STUB
445 *
446 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
447 *****************************************************************************/
448
449BOOL WIN32API CallNamedPipeA( LPCSTR lpNamedPipeName,
450 LPVOID lpInBuffer, DWORD nInBufferSize,
451 LPVOID lpOutBuffer, DWORD nOutBufferSize,
452 LPDWORD lpBytesRead, DWORD nTimeOut)
453{
454
455 dprintf(("KERNEL32: CallNamedPipeA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
456 lpNamedPipeName, lpInBuffer, nInBufferSize,
457 lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut
458 ));
459
460 return (FALSE);
461}
462
463/*****************************************************************************
464 * Name : BOOL WIN32AOI CallNamedPipeA
465 * Purpose : The CallNamedPipe function connects to a message-type pipe
466 * (and waits if an instance of the pipe is not available),
467 * writes to and reads from the pipe, and then closes the pipe.
468 * Parameters: LPCWSTR lpNamedPipeName pointer to pipe name
469 * LPVOID lpInBuffer pointer to write buffer
470 * DWORD nInBufferSize size, in bytes, of write buffer
471 * LPVOID lpOutBuffer pointer to read buffer
472 * DWORD nOutBufferSize size, in bytes, of read buffer
473 * LPDWORD lpBytesRead pointer to number of bytes read
474 * DWORD nTimeOut time-out time, in milliseconds
475 * Variables :
476 * Result : If the function succeeds, the return value is nonzero.
477 * If the function fails, the return value is zero.
478 * To get extended error information, call GetLastError.
479 * Remark : Calling CallNamedPipe is equivalent to calling the CreateFile
480 * (or WaitNamedPipe, if CreateFile cannot open the pipe immediately),
481 * TransactNamedPipe, and CloseHandle functions. CreateFile is called
482 * with an access flag of GENERIC_READ | GENERIC_WRITE, an inherit
483 * handle flag of FALSE, and a share mode of zero (indicating no
484 * sharing of this pipe instance).
485 * If the message written to the pipe by the server process is
486 * longer than nOutBufferSize, CallNamedPipe returns FALSE, and
487 * GetLastError returns ERROR_MORE_DATA. The remainder of the
488 * message is discarded, because CallNamedPipe closes the handle
489 * to the pipe before returning.
490 *
491 * CallNamedPipe fails if the pipe is a byte-type pipe.
492 * Status : UNTESTED STUB
493 *
494 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
495 *****************************************************************************/
496
497BOOL WIN32API CallNamedPipeW( LPCWSTR lpNamedPipeName,
498 LPVOID lpInBuffer, DWORD nInBufferSize,
499 LPVOID lpOutBuffer, DWORD nOutBufferSize,
500 LPDWORD lpBytesRead, DWORD nTimeOut)
501{
502
503 dprintf(("KERNEL32: CallNamedPipeA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
504 lpNamedPipeName, lpInBuffer, nInBufferSize,
505 lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut
506 ));
507
508 return (FALSE);
509}
510/*****************************************************************************
511 * Name : BOOL WIN32API CancelIo
512 * Purpose : The CancelIO function cancels all pending input and output
513 * (I/O) operations that were issued by the calling thread for
514 * the specified file handle. The function does not cancel
515 * I/O operations issued for the file handle by other threads.
516 * Parameters: HANDLE hFile file handle for which to cancel I/O
517 * Variables :
518 * Result : If the function succeeds, the return value is nonzero All pending
519 * I/O operations issued by the calling thread for the file handle
520 * were successfully canceled.
521 * If the function fails, the return value is zero.
522 * To get extended error information, call GetLastError.
523 * Remark : If there are any I/O operations in progress for the specified
524 * file handle, and they were issued by the calling thread, the
525 * CancelIO function cancels them.
526 * Note that the I/O operations must have been issued as
527 * overlapped I/O. If they were not, the I/O operations would not
528 * have returned to allow the thread to call the CancelIO function.
529 * Calling the CancelIO function with a file handle that was not
530 * opened with FILE_FLAG_OVERLAPPED does nothing.
531 * All I/O operations that are canceled will complete with the
532 * error ERROR_OPERATION_ABORTED. All completion notifications
533 * for the I/O operations will occur normally.
534 * Status : UNTESTED STUB
535 *
536 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
537 *****************************************************************************/
538
539BOOL WIN32API CancelIo(HANDLE hFile)
540{
541
542 dprintf(("KERNEL32:CancelIo(%08x) not implemented\n",
543 hFile
544 ));
545
546 return (FALSE);
547}
548
549/*****************************************************************************
550 * Name : BOOL CancelWaitableTimer
551 * Purpose : The CancelWaitableTimer function sets the specified "waitable"
552 * timer to the inactive state.
553 * Parameters: HANDLE hTimer handle to a timer object
554 * Variables :
555 * Result : If the function succeeds, the return value is nonzero.
556 * If the function fails, the return value is zero.
557 * To get extended error information, call GetLastError.
558 * Remark : The CancelWaitableTimer function does not change the signaled
559 * state of the timer. It stops the timer before it can be set to
560 * the signaled state. Therefore, threads performing a wait
561 * operation on the timer remain waiting until they time out or
562 * the timer is reactivated and its state is set to signaled.
563 *
564 * To reactivate the timer, call the SetWaitableTimer function.
565 * Status : UNTESTED STUB
566 *
567 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
568 *****************************************************************************/
569
570BOOL WIN32API CancelWaitableTimer(HANDLE hTimer)
571{
572
573 dprintf(("KERNEL32:CancelWaitableTimer(%08x) not implemented\n",
574 hTimer
575 ));
576
577 return (FALSE);
578}
579
580/*****************************************************************************
581 * Name : BOOL WIN32API ConnectNamedPipe
582 * Purpose : The ConnectNamedPipe function enables a named pipe server process
583 * to wait for a client process to connect to an instance of a
584 * named pipe. A client process connects by calling either the
585 * CreateFile or CallNamedPipe function.
586 * Parameters: HANDLE hNamedPipe handle to named pipe to connect
587 * LPOVERLAPPED lpOverlapped pointer to overlapped structure
588 * Variables :
589 * Result : If the function succeeds, the return value is nonzero.
590 * If the function fails, the return value is zero.
591 * To get extended error information, call GetLastError.
592 * Remark :
593 * Status : UNTESTED STUB
594 *
595 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
596 *****************************************************************************/
597
598BOOL WIN32API ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped)
599{
600
601 dprintf(("KERNEL32: ConnectNamedPipe(%08x,%08x) not implemented\n",
602 hNamedPipe, lpOverlapped
603 ));
604
605 return (FALSE);
606}
607
608
609/*****************************************************************************
610 * Name : BOOL WIN32API ContinueDebugEvent
611 * Purpose : The ContinueDebugEvent function enables a debugger to continue
612 * a thread that previously reported a debugging event.
613 * Parameters: DWORD dwProcessId process to continue
614 DWORD dwThreadId thread to continue
615 DWORD dwContinueStatus continuation status
616 * Variables :
617 * Result : If the function succeeds, the return value is nonzero.
618 * If the function fails, the return value is zero.
619 * To get extended error information, call GetLastError.
620 * Remark : Only the thread that created dwProcessId with the CreateProcess
621 * function can call ContinueDebugEvent.
622 * After the ContinueDebugEvent function succeeds, the specified
623 * thread continues. Depending on the debugging event previously
624 * reported by the thread, different actions occur. If the continued
625 * thread previously reported an EXIT_THREAD_DEBUG_EVENT
626 * debugging event, ContinueDebugEvent closes the handle the
627 * debugger has to the thread. If the continued thread previously
628 * reported an EXIT_PROCESS_DEBUG_EVENT debugging event,
629 * ContinueDebugEvent closes the handles the debugger has to the
630 * process and to the thread.
631 * Status : UNTESTED STUB
632 *
633 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
634 *****************************************************************************/
635
636BOOL WIN32API ContinueDebugEvent( DWORD dwProcessId, DWORD dwThreadId,
637 DWORD dwContinueStatus)
638{
639
640 dprintf(("KERNEL32: ContinueDebugEvent(%08x,%08x,%08x)not implemented\n",
641 dwProcessId, dwThreadId, dwContinueStatus
642 ));
643
644 return (FALSE);
645}
646
647/*****************************************************************************
648 * Name : LCID WIN32API ConvertDefaultLocale
649 * Purpose : The ConvertDefaultLocale function converts a special default
650 * locale value to an actual locale identifier.
651 * Parameters: LCID Locale special default locale value to be converted
652 * Value Description
653 * LOCALE_SYSTEM_DEFAULT The system's default locale.
654 * LOCALE_USER_DEFAULT The current user's default locale.
655 * zero The language-neutral default locale.
656 * This is equivalent to the locale identifier
657 * created by calling the MAKELCID macro
658 * with a language identifier consisting
659 * of the LANG_NEUTRAL and SUBLANG_NEUTRAL
660 * values.
661 * Any sublanguage neutral default locale
662 * A locale identifier constructed by
663 * calling MAKELCID with a language
664 * identifier consisting of a primary
665 * language value, such as LANG_ENGLISH,
666 * and the SUBLANG_NEUTRAL value.
667 *
668 * Variables :
669 * Result : If the function succeeds, the return value is the appropriate
670 * actual locale identifier.
671 * If the function fails, the return value is the Locale parameter.
672 * The function fails when Locale is not one of the special
673 * default locale values listed above.
674 * Remark : A call to ConvertDefaultLocale(LOCALE_SYSTEM_DEFAULT)
675 * is equivalent to a call to GetSystemDefaultLCID.
676 * A call to ConvertDefaultLocale(LOCALE_USER_DEFAULT)
677 * is equivalent to a call to GetUserDefaultLCID.
678 * Status : UNTESTED STUB
679 *
680 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
681 *****************************************************************************/
682
683LCID WIN32API ConvertDefaultLocale(LCID Locale)
684{
685
686 dprintf(("KERNEL32: ConvertDefaultLocale(%08x) partly implmented - returns input\n",
687 Locale
688 ));
689
690 return (Locale);
691}
692
693/*****************************************************************************
694 * Name : BOOL WIN32API CopyFileExA
695 * Purpose : The CopyFileExA function copies an existing file to a new file.
696 * This function preserves extended attributes, OLE structured
697 * storage, NTFS alternate data streams, and file attributes.
698 * Security attributes for the existing file are not copied to
699 * the new file.
700 * Parameters: LPCSTR lpExistingFileName pointer to name of an existing file
701 * LPCSTR lpNewFileName pointer to filename to copy to
702 * LPPROGRESS_ROUTINE lpProgressRoutine pointer to the callback function
703 * LPVOID lpData to be passed to the callback function
704 * LPBOOL pbCancel flag that can be used to cancel the operation
705 * DWORD dwCopyFlags flags that specify how the file is copied
706 * Variables :
707 * Result : f the function succeeds, the return value is nonzero.
708 * If the function fails, the return value is zero.
709 * To get extended error information call GetLastError.
710 * Remark :
711 * Status : UNTESTED STUB
712 *
713 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
714 *****************************************************************************/
715
716BOOL WIN32API CopyFileExA( LPCSTR lpExistingFileName,
717 LPCSTR lpNewFileName,
718 LPPROGRESS_ROUTINE lpProgressRoutine,
719 LPVOID lpData,
720 LPBOOL pbCancel,
721 DWORD dwCopyFlags)
722{
723
724 dprintf(("KERNEL32: CopyFileExA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
725 lpExistingFileName,
726 lpNewFileName,
727 lpProgressRoutine,
728 lpData,
729 pbCancel,
730 dwCopyFlags
731 ));
732
733 return (FALSE);
734}
735
736
737/*****************************************************************************
738 * Name : BOOL WIN32API CopyFileExW
739 * Purpose : The CopyFileExW function copies an existing file to a new file.
740 * This function preserves extended attributes, OLE structured
741 * storage, NTFS alternate data streams, and file attributes.
742 * Security attributes for the existing file are not copied to
743 * the new file.
744 * Parameters: LPCWSTR lpExistingFileName pointer to name of an existing file
745 * LPCWSTR lpNewFileName pointer to filename to copy to
746 * LPPROGRESS_ROUTINE lpProgressRoutine pointer to the callback function
747 * LPVOID lpData to be passed to the callback function
748 * LPBOOL pbCancel flag that can be used to cancel the operation
749 * DWORD dwCopyFlags flags that specify how the file is copied
750 * Variables :
751 * Result : f the function succeeds, the return value is nonzero.
752 * If the function fails, the return value is zero.
753 * To get extended error information call GetLastError.
754 * Remark :
755 * Status : UNTESTED STUB
756 *
757 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]
758 *****************************************************************************/
759
760BOOL WIN32API CopyFileExW( LPCWSTR lpExistingFileName,
761 LPCWSTR lpNewFileName,
762 LPPROGRESS_ROUTINE lpProgressRoutine,
763 LPVOID lpData,
764 LPBOOL pbCancel,
765 DWORD dwCopyFlags)
766{
767
768 dprintf(("KERNEL32: CopyFileExW(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
769 lpExistingFileName,
770 lpNewFileName,
771 lpProgressRoutine,
772 lpData,
773 pbCancel,
774 dwCopyFlags
775 ));
776
777 return (FALSE);
778}
779
780/*****************************************************************************
781 * Name : BOOL WIN32API CreateDirectoryExA
782 * Purpose : The CreateDirectoryExA function creates a new directory with a
783 * specified path that retains the attributes of a specified
784 * template directory. If the underlying file system supports
785 * security on files and directories, the function applies a
786 * specified security descriptor to the new directory.
787 * The new directory retains the other attributes of the specified
788 * template directory. Note that CreateDirectoryEx has a template
789 * parameter, while CreateDirectory does not.
790 * Parameters: LPCSTR lpTemplateDirectory pointer to path string of template
791 * directory
792 * LPCSTR lpNewDirectory pointer to path string of directory
793 * to create
794 * LPSECURITY_ATTRIBUTES lpSecurityAttributes pointer to security
795 * descriptor
796 *
797 * Variables :
798 * Result : If the function succeeds, the return value is nonzero.
799 * If the function fails, the return value is zero.
800 * To get extended error information, call GetLastError.
801 * Remark :
802 * Status : UNTESTED STUB
803 *
804 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
805 *****************************************************************************/
806
807BOOL WIN32API CreateDirectoryExA( LPCSTR lpTemplateDirectory,
808 LPCSTR lpNewDirectory,
809 LPSECURITY_ATTRIBUTES lpSecurityAttributes)
810{
811
812 dprintf(("KERNEL32:CreateDirectoryExA(%08x,%08x,%08x) not implemented\n",
813 lpTemplateDirectory,lpNewDirectory,lpSecurityAttributes
814 ));
815
816 return (FALSE);
817}
818
819/*****************************************************************************
820 * Name : BOOL WIN32API CreateDirectoryExW
821 * Purpose : The CreateDirectoryExW function creates a new directory with a
822 * specified path that retains the attributes of a specified
823 * template directory. If the underlying file system supports
824 * security on files and directories, the function applies a
825 * specified security descriptor to the new directory.
826 * The new directory retains the other attributes of the specified
827 * template directory. Note that CreateDirectoryEx has a template
828 * parameter, while CreateDirectory does not.
829 * Parameters: LPCWSTR lpTemplateDirectory pointer to path string of template
830 * directory
831 * LPCWSTR lpNewDirectory pointer to path string of directory
832 * to create
833 * LPSECURITY_ATTRIBUTES lpSecurityAttributes pointer to security
834 * descriptor
835 *
836 * Variables :
837 * Result : If the function succeeds, the return value is nonzero.
838 * If the function fails, the return value is zero.
839 * To get extended error information, call GetLastError.
840 * Remark :
841 * Status : UNTESTED STUB
842 *
843 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
844 *****************************************************************************/
845
846BOOL WIN32API CreateDirectoryExW( LPCWSTR lpTemplateDirectory,
847 LPCWSTR lpNewDirectory,
848 LPSECURITY_ATTRIBUTES lpSecurityAttributes)
849{
850
851 dprintf(("KERNEL32:CreateDirectoryExW(%08x,%08x,%08x) not implemented\n",
852 lpTemplateDirectory,lpNewDirectory,lpSecurityAttributes
853 ));
854
855 return (FALSE);
856}
857
858/*****************************************************************************
859 * Name : LPVOID WIN32API CreateFiber
860 * Purpose : The CreateFiber function allocates a fiber object, assigns it a
861 * stack, and sets up execution to begin at the specified
862 * start address, typically the fiber function.
863 * This function does not schedule the fiber.
864 * Parameters: DWORD dwStackSize initial thread stack size, in bytes
865 * LPFIBER_START_ROUTINE lpStartAddress pointer to fiber function
866 * LPVOID lpParameter argument for new fiber
867 * Variables :
868 * Result : If the function succeeds, the return value is the address of
869 * the fiber.
870 * If the function fails, the return value is NULL.
871 * Remark : Before a thread can schedule a fiber using the SwitchToFiber
872 * function, it must call the ConvertThreadToFiber function so there
873 * is a fiber associated with the thread.
874 * The fiber function is of type FIBER_START_ROUTINE.
875 * It accepts a single value of type PVOID (fiber data) and does not
876 * return a value. The prototype for this function is as follows:
877 *
878 * VOID WINAPI FiberFunc( PVOID lpParameter );
879 *
880 * Status : UNTESTED STUB
881 *
882 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
883 *****************************************************************************/
884
885LPVOID WIN32API CreateFiber( DWORD dwStackSize,
886 LPFIBER_START_ROUTINE lpStartAddress,
887 LPVOID lpParameter)
888{
889
890 dprintf(("KERNEL32:CreateFiber(%08x,%08x,%08x) not implemented\n",
891 dwStackSize, lpStartAddress,lpParameter
892 ));
893
894 return (NULL);
895}
896
897
898/*****************************************************************************
899 * Name : HANDLE WIN32API CreateIoCompletionPort
900 * Purpose : The CreateIoCompletionPort function can associate an instance of
901 * an opened file with a newly created or an existing input/output
902 * completion port; or it can create an input/output completion port
903 * without associating it with a file.
904 * Associating an instance of an opened file with an input/output
905 * completion port lets an application receive notification of the
906 * completion of asynchronous input/output operations involving that
907 * file.
908 * Parameters: HANDLE FileHandle file handle to associate with I/O
909 * completion port. Must be created
910 * with flag FILE_FLAG_OVERLAPPED !
911 * HANDLE ExistingCompletionPort optional handle to existing
912 * I/O completion port
913 * DWORD CompletionKey per-file completion key for
914 * I/O completion packets
915 * DWORD NumberOfConcurrentThreads number of threads allowed to
916 * execute concurrently
917 * Variables :
918 * Result : If the function succeeds, the return value is the handle to the
919 * I/O completion port that is associated with the specified file.
920 * This return value is not NULL.
921 * If the function fails, the return value is NULL.
922 * Remark : The Win32 I/O system can be instructed to send I/O completion
923 * notification packets to input/output completion ports, where they
924 * are queued up. The CreateIoCompletionPort function provides a
925 * mechanism for this.
926 * When you perform an input/output operation with a file handle
927 * that has an associated input/output completion port, the
928 * I/O system sends a completion notification packet to the
929 * completion port when the I/O operation completes.
930 * The I/O completion port places the completion packet in a
931 * first-in-first-out queue.
932 * Use the GetQueuedCompletionStatus function to retrieve these
933 * queued I/O completion packets.
934 * Threads in the same process can use the PostQueuedCompletionStatus
935 * function to place I/O completion notification packets in a
936 * completion port's queue. This allows you to use the port to
937 * receive communications from other threads of the process,
938 * in addition to receiving I/O completion notification packets
939 * from the Win32 I/O system.
940 * Status : UNTESTED STUB
941 *
942 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
943 *****************************************************************************/
944
945HANDLE WIN32API CreateIoCompletionPort( HANDLE FileHandle,
946 HANDLE ExistingCompletionPort,
947 DWORD CompletionKey,
948 DWORD NumberOfConcurrentThreads)
949{
950
951 dprintf(("KERNEL32: CreateIoCompletionPort(%08x,%08x,%08x,%08x) not implemented\n",
952 FileHandle, ExistingCompletionPort, CompletionKey,
953 NumberOfConcurrentThreads
954 ));
955
956 return (NULL);
957}
958/*****************************************************************************
959 * Name : HANDLE WIN32API CreateMailslotA
960 * Purpose : The CreateMailslot function creates a mailslot with the specified
961 * name and returns a handle that a mailslot server can use to
962 * perform operations on the mailslot. The mailslot is local to the
963 * computer that creates it. An error occurs if a mailslot with
964 * the specified name already exists.
965 * Parameters: LPCSTR lpName pointer to string for mailslot name
966 * DWORD nMaxMessageSize maximum message size
967 * DWORD lReadTimeout milliseconds before read time-out
968 * LPSECURITY_ATTRIBUTES lpSecurityAttributes pointer to security structure
969 * Variables :
970 * Result : If the function succeeds, the return value is a handle to
971 * the mailslot, for use in server mailslot operations.
972 * If the function fails, the return value is INVALID_HANDLE_VALUE.
973 * Remark :
974 * Status : UNTESTED STUB
975 *
976 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
977 *****************************************************************************/
978
979HANDLE WIN32API CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize,
980 DWORD lReadTimeout,
981 LPSECURITY_ATTRIBUTES lpSecurityAttributes)
982{
983
984 dprintf(("KERNEL32: CreateMailslotA(%08x,%08x,%08x,%08x) not implemented - INVALID_HANDLE_VALUE\n",
985 lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes
986 ));
987
988 return (INVALID_HANDLE_VALUE);
989}
990
991/*****************************************************************************
992 * Name : HANDLE WIN32API CreateMailslotW
993 * Purpose : The CreateMailslot function creates a mailslot with the specified
994 * name and returns a handle that a mailslot server can use to
995 * perform operations on the mailslot. The mailslot is local to the
996 * computer that creates it. An error occurs if a mailslot with
997 * the specified name already exists.
998 * Parameters: LPCWSTR lpName pointer to string for mailslot name
999 * DWORD nMaxMessageSize maximum message size
1000 * DWORD lReadTimeout milliseconds before read time-out
1001 * LPSECURITY_ATTRIBUTES lpSecurityAttributes pointer to security
1002 * structure
1003 * Variables :
1004 * Result : If the function succeeds, the return value is a handle to
1005 * the mailslot, for use in server mailslot operations.
1006 * If the function fails, the return value is INVALID_HANDLE_VALUE.
1007 * Remark :
1008 * Status : UNTESTED STUB
1009 *
1010 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1011 *****************************************************************************/
1012
1013HANDLE WIN32API CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize,
1014 DWORD lReadTimeout,
1015 LPSECURITY_ATTRIBUTES lpSecurityAttributes)
1016{
1017
1018 dprintf(("KERNEL32: CreateMailslotW(%08x,%08x,%08x,%08x) not implemented - INVALID_HANDLE_VALUE\n",
1019 lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes
1020 ));
1021
1022 return (INVALID_HANDLE_VALUE);
1023}
1024
1025/*****************************************************************************
1026 * Name : HANDLE WIN32API CreateRemoteThread
1027 * Purpose : The CreateRemoteThread function creates a thread that runs in
1028 * the address space of another process.
1029 * Parameters: HANDLE hProcess handle to process to create thread in
1030 * LPSECURITY_ATTRIBUTES lpThreadAttributes pointer to thread
1031 * security attributes
1032 * DWORD dwStackSize initial thread stack size, in bytes
1033 * LPTHREAD_START_ROUTINE lpStartAddress pointer to thread function
1034 * LPVOID lpParameter pointer to argument for new thread
1035 * DWORD dwCreationFlags creation flags
1036 * LPDWORD lpThreadId pointer to returned thread identifier
1037 * Variables :
1038 * Result : If the function succeeds, the return value is a handle to
1039 * the new thread.
1040 * If the function fails, the return value is NULL.
1041 * Remark :
1042 * Status : UNTESTED STUB
1043 *
1044 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1045 *****************************************************************************/
1046
1047HANDLE WIN32API CreateRemoteThread( HANDLE hProcess,
1048 LPSECURITY_ATTRIBUTES lpThreadAttributes,
1049 DWORD dwStackSize,
1050 LPTHREAD_START_ROUTINE lpStartAddress,
1051 LPVOID lpParameter,DWORD dwCreationFlags,
1052 LPDWORD lpThreadId )
1053{
1054
1055 dprintf(("KERNEL32: CreateRemoteThread(%08x,%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",
1056 hProcess, lpThreadAttributes, dwStackSize, lpStartAddress,
1057 lpParameter, dwCreationFlags, lpThreadId
1058 ));
1059
1060 return (NULL);
1061}
1062/*****************************************************************************
1063 * Name : DWORD WIN32API CreateTapePartition
1064 * Purpose : The CreateTapePartition function reformats a tape.
1065 * Parameters: HANDLE hDevice handle to open device
1066 * DWORD dwPartitionMethode type of new partition
1067 * DWORD dwCount number of new partitions to create
1068 * DWORD dwSize size of new partition, in megabytes
1069 * Variables :
1070 * Result : If the function succeeds, the return value is NO_ERROR.
1071 * If the function fails, it may return one of the following
1072 * error codes:
1073 * Error Description
1074 * ERROR_BEGINNING_OF_MEDIA An attempt to access data before
1075 * the beginning-of-medium marker failed.
1076 * ERROR_BUS_RESET A reset condition was detected on the bus.
1077 * ERROR_END_OF_MEDIA The end-of-tape marker was reached
1078 * during an operation.
1079 * ERROR_FILEMARK_DETECTED A filemark was reached during an operation.
1080 * ERROR_SETMARK_DETECTED A setmark was reached during an operation.
1081 * ERROR_NO_DATA_DETECTED The end-of-data marker was reached
1082 * during an operation.
1083 * ERROR_PARTITION_FAILURE The tape could not be partitioned.
1084 * ERROR_INVALID_BLOCK_LENGTH The block size is incorrect on a
1085 * new tape in a multivolume partition.
1086 * ERROR_DEVICE_NOT_PARTITIONED The partition information could not
1087 * be found when a tape was being loaded.
1088 * ERROR_MEDIA_CHANGED The tape that was in the drive has
1089 * been replaced or removed.
1090 * ERROR_NO_MEDIA_IN_DRIVE There is no media in the drive.
1091 * ERROR_NOT_SUPPORTED The tape driver does not support a
1092 * requested function.
1093 * ERROR_UNABLE_TO_LOCK_MEDIA An attempt to lock the ejection
1094 * mechanism failed.
1095 * ERROR_UNABLE_TO_UNLOAD_MEDIA An attempt to unload the tape failed.
1096 * ERROR_WRITE_PROTECT The media is write protected.
1097 * Remark : Creating partitions reformats the tape. All previous information
1098 * recorded on the tape is destroyed.
1099 * Errorcodes are defined in winerror.h
1100 * Status : UNTESTED STUB
1101 *
1102 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1103 *****************************************************************************/
1104
1105DWORD WIN32API CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
1106 DWORD dwCount, DWORD dwSize)
1107{
1108
1109 dprintf(("KERNEL32: CreateTapePartition(%08x,%08x,%08x,%08x) not implemented - ERROR_NOT_SUPPORTED\n",
1110 hDevice, dwPartitionMethod, dwCount, dwSize
1111 ));
1112
1113 return (ERROR_NOT_SUPPORTED);
1114}
1115/*****************************************************************************
1116 * Name : HANDLE WIN23API CreateWaitableTimerA
1117 * Purpose : The CreateWaitableTimerA function creates a "waitable" timer object.
1118 * Parameters: LPSECURITY_ATTRIBUTES lpTimerAttributes pointer to security attributes
1119 * BOOL bManualReset flag for manual reset state
1120 * LPCTSTR lpTimerName pointer to timer object name
1121 * Variables :
1122 * Result : If the function succeeds, the return value is a handle to the
1123 * timer object. If the named timer object exists before the
1124 * function call, GetLastError returns ERROR_ALREADY_EXISTS.
1125 * Otherwise, GetLastError returns zero.
1126 * If the function fails, the return value is NULL
1127 * Remark :
1128 * Status : UNTESTED STUB
1129 *
1130 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1131 *****************************************************************************/
1132
1133HANDLE WIN32API CreateWaitableTimerA( LPSECURITY_ATTRIBUTES lpTimerAttributes,
1134 BOOL bManualReset, LPCSTR lpTimerName)
1135{
1136
1137 dprintf(("KERNEL32: CreateWaitableTimer(%08x,%08x,%08x) not implemented\n",
1138 lpTimerAttributes, bManualReset, lpTimerName
1139 ));
1140
1141 return (NULL);
1142}
1143
1144/*****************************************************************************
1145 * Name : HANDLE WIN23API CreateWaitableTimerW
1146 * Purpose : The CreateWaitableTimerW function creates a "waitable" timer object.
1147 * Parameters: LPSECURITY_ATTRIBUTES lpTimerAttributes pointer to security attributes
1148 * BOOL bManualReset flag for manual reset state
1149 * LPCTSTR lpTimerName pointer to timer object name
1150 * Variables :
1151 * Result : If the function succeeds, the return value is a handle to the
1152 * timer object. If the named timer object exists before the
1153 * function call, GetLastError returns ERROR_ALREADY_EXISTS.
1154 * Otherwise, GetLastError returns zero.
1155 * If the function fails, the return value is NULL
1156 * Remark :
1157 * Status : UNTESTED STUB
1158 *
1159 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1160 *****************************************************************************/
1161
1162HANDLE WIN32API CreateWaitableTimerW( LPSECURITY_ATTRIBUTES lpTimerAttributes,
1163 BOOL bManualReset, LPCWSTR lpTimerName)
1164{
1165
1166 dprintf(("KERNEL32: CreateWaitableTimer(%08x,%08x,%08x) not implemented\n",
1167 lpTimerAttributes, bManualReset, lpTimerName
1168 ));
1169
1170 return (NULL);
1171}
1172
1173/*****************************************************************************
1174 * Name : BOOL WIN32API DebugActiveProcess
1175 * Purpose : The DebugActiveProcess function allows a debugger to attach to
1176 * an active process and then debug it.
1177 * Parameters: DWORD dwProcessId process to be debugged
1178 * Variables :
1179 * Result : If the function succeeds, the return value is nonzero.
1180 * If the function fails, the return value is zero
1181 * Remark :
1182 * Status : UNTESTED STUB
1183 *
1184 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1185 *****************************************************************************/
1186
1187BOOL WIN32API DebugActiveProcess(DWORD dwProcessId)
1188{
1189
1190 dprintf(("KERNEL32:DebugActiveProcess(%08x) not implemented\n",
1191 dwProcessId
1192 ));
1193
1194 return (FALSE);
1195}
1196
1197/*****************************************************************************
1198 * Name : BOOL WIN32API DefineDosDeviceA
1199 * Purpose : The DefineDosDeviceA function lets an application define,
1200 * redefine, or delete MS-DOS device names.
1201 * MS-DOS device names are stored as symbolic links in the object
1202 * name space in 32-bit versions of Windows. The code that converts
1203 * an MS-DOS path into a corresponding path in 32-bit versions of
1204 * Windows uses these symbolic links to map MS-DOS devices and drive
1205 * letters. The DefineDosDevice function provides a mechanism
1206 * whereby a Win32-based application can modify the symbolic links
1207 * used to implement the MS-DOS device name space.
1208 * Parameters: DWORD dwFlags flags specifying aspects of device definition
1209 * LPCSTR lpDeviceName pointer to MS-DOS device name string
1210 * LPCSTR lpTargetPath pointer to MS-DOS or path string for
1211 * 32-bit Windows
1212 * Variables :
1213 * Result : If the function succeeds, the return value is nonzero.
1214 * If the function fails, the return value is zero
1215 * Remark :
1216 * Status : UNTESTED STUB
1217 *
1218 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1219 *****************************************************************************/
1220
1221BOOL WIN32API DefineDosDeviceA( DWORD dwFlags, LPCSTR lpDeviceName,
1222 LPCSTR lpTargetPath )
1223{
1224
1225 dprintf(("KERNEL32: DefineDosDeviceA(%08x,%08x,%08x) not implemented\n",
1226 dwFlags, lpDeviceName, lpTargetPath
1227 ));
1228
1229 return (FALSE);
1230}
1231
1232/*****************************************************************************
1233 * Name : BOOL WIN32API DefineDosDeviceW
1234 * Purpose : UNICODE version of DefineDosDeviceA
1235 * Parameters: DWORD dwFlags flags specifying aspects of device definition
1236 * LPCSTR lpDeviceName pointer to MS-DOS device name string
1237 * LPCSTR lpTargetPath pointer to MS-DOS or path string for
1238 * 32-bit Windows
1239 * Variables :
1240 * Result : If the function succeeds, the return value is nonzero.
1241 * If the function fails, the return value is zero
1242 * Remark :
1243 * Status : UNTESTED STUB
1244 *
1245 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1246 *****************************************************************************/
1247
1248BOOL WIN32API DefineDosDeviceW( DWORD dwFlags, LPCWSTR lpDeviceName,
1249 LPCWSTR lpTargetPath )
1250{
1251
1252 dprintf(("KERNEL32: DefineDosDeviceW(%08x,%08x,%08x) not implemented\n",
1253 dwFlags, lpDeviceName, lpTargetPath
1254 ));
1255
1256 return (FALSE);
1257}
1258
1259/*****************************************************************************
1260 * Name : VOID WIN32API DeleteFiber
1261 * Purpose : The DeleteFiber function deletes an existing fiber
1262 * Parameters: LPVOID lpFiber pointer to the fiber to delete
1263 * Variables :
1264 * Result : No returnvalue
1265 * Remark : The DeleteFiber function deletes all data associated with the
1266 * fiber. This data includes the stack, a subset of the registers,
1267 * and the fiber data. If the currently running fiber calls
1268 * DeleteFiber, the ExitThread function is called and the thread
1269 * terminates. If the currently running fiber is deleted by another
1270 * thread, the thread associated with the fiber is likely to
1271 * terminate abnormally because the fiber stack has been freed.
1272 * Status : UNTESTED STUB
1273 *
1274 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1275 *****************************************************************************/
1276
1277VOID WIN32API DeleteFiber(LPVOID lpFiber)
1278{
1279
1280 dprintf(("KERNEL32: DeleteFiber(%08x) not implemented\n",
1281 lpFiber
1282 ));
1283}
1284/*****************************************************************************
1285 * Name : BOOL WIN32API DisconnectNamedPipe
1286 * Purpose : The DisconnectNamedPipe function disconnects the server end
1287 * of a named pipe instance from a client process.
1288 * Parameters: HANDLE hNamedPipe handle to named pipe
1289 * Variables :
1290 * Result : If the function succeeds, the return value is nonzero.
1291 * If the function fails, the return value is zero
1292 * Remark :
1293 * Status : UNTESTED STUB
1294 *
1295 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1296 *****************************************************************************/
1297
1298BOOL WIN32API DisconnectNamedPipe(HANDLE hNamedPipe)
1299{
1300
1301 dprintf(("KERNEL32: DisconnectNamedPipe(%08x) not implemented\n",
1302 hNamedPipe
1303 ));
1304
1305 return (FALSE);
1306}
1307
1308/*****************************************************************************
1309 * Name : BOOL WIN3API EndUpdateResourceA
1310 * Purpose : The EndUpdateResourceA function ends a resource update
1311 * in an executable file.
1312 * Parameters: HANDLE hUpdate update-file handle
1313 * BOOL fDiscard write flag
1314 * Variables :
1315 * Result : If the function succeeds and the accumulated resource
1316 * modifications specified by calls to the UpdateResource function
1317 * are written to the specified executable file,
1318 * the return value is nonzero.
1319 * If the function fails, the return value is zero
1320 * Remark :
1321 * Status : UNTESTED STUB
1322 *
1323 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1324 *****************************************************************************/
1325
1326BOOL WIN32API EndUpdateResourceA(HANDLE hUpdate,BOOL fDiscard)
1327{
1328
1329 dprintf(("KERNEL32:EndUpdateResourceA(%08x,%08x)not implemented\n",
1330 hUpdate, fDiscard
1331 ));
1332
1333 return (FALSE);
1334}
1335
1336/*****************************************************************************
1337 * Name : BOOL WIN3API EndUpdateResourceW
1338 * Purpose : The EndUpdateResourceW function ends a resource update
1339 * in an executable file.
1340 * Parameters: HANDLE hUpdate update-file handle
1341 * BOOL fDiscard write flag
1342 * Variables :
1343 * Result : If the function succeeds and the accumulated resource
1344 * modifications specified by calls to the UpdateResource function
1345 * are written to the specified executable file,
1346 * the return value is nonzero.
1347 * If the function fails, the return value is zero
1348 * Remark :
1349 * Status : UNTESTED STUB
1350 *
1351 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1352 *****************************************************************************/
1353
1354BOOL WIN32API EndUpdateResourceW(HANDLE hUpdate,BOOL fDiscard)
1355{
1356
1357 dprintf(("KERNEL32:EndUpdateResourceW(%08x,%08x) not implemented\n",
1358 hUpdate, fDiscard
1359 ));
1360
1361 return (FALSE);
1362}
1363
1364/*****************************************************************************
1365 * Name : BOOL WIN32API EnumCalendarInfoA
1366 * Purpose : The EnumCalendarInfoA function enumerates calendar information
1367 * for a specified locale. The CalType parameter specifies the type
1368 * of calendar information to enumerate. The function returns the
1369 * specified calendar information for all applicable calendars for
1370 * the locale, or for a single requested calendar, depending on the
1371 * value of the Calendar parameter.
1372 * The EnumCalendarInfo function enumerates the calendar information
1373 * by calling an application-defined callback function. It passes
1374 * the callback function a pointer to a string buffer containing
1375 * the requested calendar information. This continues until either
1376 * the last applicable calendar is found or the callback function
1377 * returns FALSE.
1378 * Parameters: CALINFO_ENUMPROCA lpCalInfoEnumProc pointer to enumeration
1379 * callback function
1380 * LCID Locale locale whose calendar information is of interest
1381 * CALID Calendar calendar whose information is of interest
1382 * CALTYPE CalType type of calendar information of interest
1383 * Variables :
1384 * Result : If the function succeeds, the return value is nonzero.
1385 * If the function fails, the return value is zero
1386 * Remark :
1387 * Status : UNTESTED STUB
1388 *
1389 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1390 *****************************************************************************/
1391
1392BOOL WIN32API EnumCalendarInfoA(CALINFO_ENUMPROCA lpCalInfoEnumProc,
1393 LCID Locale,
1394 CALID Calendar,
1395 CALTYPE CalType)
1396{
1397
1398 dprintf(("KERNEL32: EnumCalendarInfoA(%08x,%08x,%08x,%08x)not implemented\n",
1399 lpCalInfoEnumProc,
1400 Locale,
1401 Calendar,
1402 CalType
1403 ));
1404
1405 return (FALSE);
1406}
1407
1408/*****************************************************************************
1409 * Name : BOOL WIN32API EnumCalendarInfoW
1410 * Purpose : The EnumCalendarInfoW function enumerates calendar information
1411 * for a specified locale. The CalType parameter specifies the type
1412 * of calendar information to enumerate. The function returns the
1413 * specified calendar information for all applicable calendars for
1414 * the locale, or for a single requested calendar, depending on the
1415 * value of the Calendar parameter.
1416 * The EnumCalendarInfo function enumerates the calendar information
1417 * by calling an application-defined callback function. It passes
1418 * the callback function a pointer to a string buffer containing
1419 * the requested calendar information. This continues until either
1420 * the last applicable calendar is found or the callback function
1421 * returns FALSE.
1422 * Parameters: CALINFO_ENUMPROCW lpCalInfoEnumProc pointer to enumeration
1423 * callback function
1424 * LCID Locale locale whose calendar information is of interest
1425 * CALID Calendar calendar whose information is of interest
1426 * CALTYPE CalType type of calendar information of interest
1427 * Variables :
1428 * Result : If the function succeeds, the return value is nonzero.
1429 * If the function fails, the return value is zero
1430 * Remark :
1431 * Status : UNTESTED STUB
1432 *
1433 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1434 *****************************************************************************/
1435
1436BOOL WIN32API EnumCalendarInfoW(CALINFO_ENUMPROCW lpCalInfoEnumProc,
1437 LCID Locale,
1438 CALID Calendar,
1439 CALTYPE CalType)
1440{
1441
1442 dprintf(("KERNEL32: EnumCalendarInfoW(%08x,%08x,%08x,%08x)not implemented\n",
1443 lpCalInfoEnumProc,
1444 Locale,
1445 Calendar,
1446 CalType
1447 ));
1448
1449 return (FALSE);
1450}
1451
1452/*****************************************************************************
1453 * Name : BOOL WIN32API EnumSystemCodePagesA
1454 * Purpose : The EnumSystemCodePagesA function enumerates the code pages that
1455 * are either installed on or supported by a system. The dwFlags
1456 * parameter determines whether the function enumerates installed
1457 * or supported code pages. The function enumerates the code pages
1458 * by passing code page identifiers, one at a time, to the specified
1459 * application-defined callback function. This continues until all
1460 * of the installed or supported code page identifiers have been
1461 * passed to the callback function, or the callback function
1462 * returns FALSE
1463 * Parameters: CODEPAGE_ENUMPROCA lpCodePageEnumProc pointer to enumeration
1464 * callback function
1465 * DWORD dwFlags indicates which code pages
1466 * to enumerate
1467 * Variables :
1468 * Result : If the function succeeds, the return value is nonzero.
1469 * If the function fails, the return value is zero
1470 * Remark :
1471 * Status : UNTESTED STUB
1472 *
1473 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1474 *****************************************************************************/
1475
1476BOOL WIN32API EnumSystemCodePagesA(CODEPAGE_ENUMPROCA lpCodePageEnumProc,
1477 DWORD dwFlags)
1478{
1479
1480 dprintf(("KERNEL32: EnumSystemCodePagesA(%08x,%08x) not implemented\n",
1481 lpCodePageEnumProc, dwFlags
1482 ));
1483
1484 return (FALSE);
1485}
1486
1487/*****************************************************************************
1488 * Name : BOOL WIN32API EnumSystemCodePagesW
1489 * Purpose : The EnumSystemCodePagesW function enumerates the code pages that
1490 * are either installed on or supported by a system. The dwFlags
1491 * parameter determines whether the function enumerates installed
1492 * or supported code pages. The function enumerates the code pages
1493 * by passing code page identifiers, one at a time, to the specified
1494 * application-defined callback function. This continues until all
1495 * of the installed or supported code page identifiers have been
1496 * passed to the callback function, or the callback function
1497 * returns FALSE
1498 * Parameters: CODEPAGE_ENUMPROCW lpCodePageEnumProc pointer to enumeration
1499 * callback function
1500 * DWORD dwFlags indicates which code pages
1501 * to enumerate
1502 * Variables :
1503 * Result : If the function succeeds, the return value is nonzero.
1504 * If the function fails, the return value is zero
1505 * Remark :
1506 * Status : UNTESTED STUB
1507 *
1508 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]
1509 *****************************************************************************/
1510
1511BOOL WIN32API EnumSystemCodePagesW(CODEPAGE_ENUMPROCW lpCodePageEnumProc,
1512 DWORD dwFlags)
1513{
1514
1515 dprintf(("KERNEL32: EnumSystemCodePagesA(%08x,%08x) not implemented\n",
1516 lpCodePageEnumProc, dwFlags
1517 ));
1518
1519 return (FALSE);
1520}
1521
1522/*****************************************************************************
1523 * Name : DWORD WIN32API EraseTape
1524 * Purpose : The EraseTape function erases all or part of a tape.
1525 * Parameters: HANDLE hDevice handle to open device
1526 * DWORD dwEraseType type of erasure to perform
1527 * BOOL bImmediate return after erase operation begins
1528 * Variables :
1529 * Result : If the function succeeds, the return value is NO_ERROR.
1530 * If the function fails, the return value is like in
1531 * CreateTapePartition
1532 * Remark : Some tape devices do not support certain tape operations. To de
1533 * termine your tape device's capabilities, see your tape device
1534 * documentation and use the GetTapeParameters function
1535 * Status : UNTESTED STUB
1536 *
1537 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1538 *****************************************************************************/
1539
1540DWORD WIN32API EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate)
1541{
1542
1543 dprintf(("KERNEL32: EraseTape(%08x,%08x,%08x) not implemented - ERROR_NOT_SUPPORTED\n",
1544 hDevice, dwEraseType, bImmediate
1545 ));
1546
1547 return (ERROR_NOT_SUPPORTED);
1548}
1549
1550
1551/*****************************************************************************
1552 * Name : HANDLE WIN32API FindFirstChangeNotificationW
1553 * Purpose : The FindFirstChangeNotification function creates a change
1554 * notification handle and sets up initial change notification
1555 * filter conditions. A wait on a notification handle succeeds when
1556 * a change matching the filter conditions occurs in the specified
1557 * directory or subtree.
1558 * Parameters: LPCWSTR lpPathName pointer to name of directory to watch
1559 * BOOL bWatchSubtree flag for monitoring directory or
1560 * directory tree
1561 * DWORD dwNotifyFilter filter conditions to watch for
1562 * Variables :
1563 * Result : If the function succeeds, the return value is a handle to a find
1564 * change notification object.
1565 * If the function fails, the return value is INVALID_HANDLE_VALUE
1566 * Remark :
1567 * Status : UNTESTED STUB
1568 *
1569 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1570 *****************************************************************************/
1571
1572HANDLE WIN32API FindFirstChangeNotificationW( LPCWSTR lpPathName,
1573 BOOL bWatchSubtree,
1574 DWORD dwNotifyFilter)
1575{
1576
1577 dprintf(("KERNEL32: FindFirstChangeNotificationW(%08x,%08x,%08x) not implemented - INVALID_HANDLE_VALUE\n",
1578 lpPathName, bWatchSubtree, dwNotifyFilter
1579 ));
1580
1581 return (INVALID_HANDLE_VALUE);
1582}
1583
1584/*****************************************************************************
1585 * Name : HANDLE WIN32API FindFirstFileExA
1586 * Purpose : The FindFirstFileExA function searches a directory for a file
1587 * whose name and attributes match those specified in the
1588 * function call.
1589 * Parameters: LPCSTR lpFileName pointer to the name of the file
1590 * to search for
1591 * FINDEX_INFO_LEVELS fInfoLevelId information level of the returned data
1592 * LPVOID lpFindFileData pointer to the returned information
1593 * FINDEX_SEARCH_OPS fSearchOp type of filtering to perform
1594 * LPVOID lpSearchFilter pointer to search criteria
1595 * DWORD dwAdditionalFlags additional search control flags
1596 * Variables :
1597 * Result : If the function succeeds, the return value is a search handle
1598 * that can be used in a subsequent call to the FindNextFile or
1599 * FindClose functions.
1600 * If the function fails, the return value is INVALID_HANDLE_VALUE
1601 * Remark :
1602 * Status : UNTESTED STUB
1603 *
1604 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1605 *****************************************************************************/
1606
1607HANDLE WIN32API FindFirstFileExA( LPCSTR lpFileName,
1608 FINDEX_INFO_LEVELS fInfoLevelId,
1609 LPVOID lpFindFileData,
1610 FINDEX_SEARCH_OPS fSearchOp,
1611 LPVOID lpSearchFilter,
1612 DWORD dwAdditionalFlags)
1613{
1614
1615 dprintf(("KERNEL32: FindFirstFileExA(%08x,%08x,%08x,%08x,%08x,%08x)not implemented - INVALID_HANDLE_VALUE\n",
1616 lpFileName,
1617 fInfoLevelId,
1618 lpFindFileData,
1619 fSearchOp,
1620 lpSearchFilter,
1621 dwAdditionalFlags
1622 ));
1623
1624 return (INVALID_HANDLE_VALUE);
1625}
1626
1627/*****************************************************************************
1628 * Name : HANDLE WIN32API FindFirstFileExW
1629 * Purpose : The FindFirstFileExW function searches a directory for a file
1630 * whose name and attributes match those specified in the
1631 * function call.
1632 * Parameters: LPCWSTR lpFileName pointer to the name of the file
1633 * to search for
1634 * FINDEX_INFO_LEVELS fInfoLevelId information level of the returned data
1635 * LPVOID lpFindFileData pointer to the returned information
1636 * FINDEX_SEARCH_OPS fSearchOp type of filtering to perform
1637 * LPVOID lpSearchFilter pointer to search criteria
1638 * DWORD dwAdditionalFlags additional search control flags
1639 * Variables :
1640 * Result : If the function succeeds, the return value is a search handle
1641 * that can be used in a subsequent call to the FindNextFile or
1642 * FindClose functions.
1643 * If the function fails, the return value is INVALID_HANDLE_VALUE
1644 * Remark :
1645 * Status : UNTESTED STUB
1646 *
1647 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1648 *****************************************************************************/
1649
1650HANDLE WIN32API FindFirstFileExW( LPCWSTR lpFileName,
1651 FINDEX_INFO_LEVELS fInfoLevelId,
1652 LPVOID lpFindFileData,
1653 FINDEX_SEARCH_OPS fSearchOp,
1654 LPVOID lpSearchFilter,
1655 DWORD dwAdditionalFlags)
1656{
1657
1658 dprintf(("KERNEL32: FindFirstFileExW(%08x,%08x,%08x,%08x,%08x,%08x)not implemented - INVALID_HANDLE_VALUE\n",
1659 lpFileName,
1660 fInfoLevelId,
1661 lpFindFileData,
1662 fSearchOp,
1663 lpSearchFilter,
1664 dwAdditionalFlags
1665 ));
1666
1667 return (INVALID_HANDLE_VALUE);
1668}
1669
1670/*****************************************************************************
1671 * Name : int WIN32API FoldStringA
1672 * Purpose : The FoldStringW function maps one string to another, performing
1673 * a specified transformation option.
1674 * Parameters: DWORD dwMapFlags, // mapping transformation options
1675 * LPCSTR lpSrcStr, // pointer to source string
1676 * int cchSrc, // size of source string, in bytes or characters
1677 * LPSTR lpDestStr, // pointer to destination buffer
1678 * int cchDest // size of destination buffer, in bytes or characters
1679 * Variables :
1680 * Result : If the function succeeds, the return value is the number of bytes
1681 * (ANSI version) or characters (Unicode version) written to the
1682 * destination buffer, or if the cchDest parameter is zero,
1683 * the number of bytes or characters required to hold the mapped
1684 * string.
1685 * If the function fails, the return value is zero
1686 * Remark :
1687 * Status : UNTESTED STUB
1688 *
1689 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1690 *****************************************************************************/
1691
1692int WIN32API FoldStringA( DWORD dwMapFlags, LPCSTR lpSrcStr,
1693 int cchSrc, LPSTR lpDestStr, int cchDest)
1694{
1695
1696 dprintf(("KERNEL32: FoldStringA(%08x,%08x,%08x,%08x,%08x) not implemented\n",
1697 dwMapFlags, lpSrcStr, cchSrc, lpDestStr, cchDest
1698 ));
1699
1700 return (0);
1701}
1702
1703/*****************************************************************************
1704 * Name : int WIN32API FoldStringW
1705 * Purpose : The FoldStringW function maps one string to another, performing
1706 * a specified transformation option.
1707 * Parameters: DWORD dwMapFlags, // mapping transformation options
1708 * LPCSTR lpSrcStr, // pointer to source string
1709 * int cchSrc, // size of source string, in bytes or characters
1710 * LPSTR lpDestStr, // pointer to destination buffer
1711 * int cchDest // size of destination buffer, in bytes or characters
1712 * Variables :
1713 * Result : If the function succeeds, the return value is the number of bytes
1714 * (ANSI version) or characters (Unicode version) written to the
1715 * destination buffer, or if the cchDest parameter is zero,
1716 * the number of bytes or characters required to hold the mapped
1717 * string.
1718 * If the function fails, the return value is zero
1719 * Remark :
1720 * Status : UNTESTED STUB
1721 *
1722 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1723 *****************************************************************************/
1724
1725int WIN32API FoldStringW( DWORD dwMapFlags, LPCWSTR lpSrcStr,
1726 int cchSrc, LPWSTR lpDestStr, int cchDest)
1727{
1728
1729 dprintf(("KERNEL32: FoldStringA(%08x,%08x,%08x,%08x,%08x) not implemented\n",
1730 dwMapFlags, lpSrcStr, cchSrc, lpDestStr, cchDest
1731 ));
1732
1733 return (0);
1734}
1735
1736
1737/*****************************************************************************
1738 * Name : VOID WIN32API FreeLibraryAndExitThread
1739 * Purpose : The FreeLibraryAndExitThread function decrements the reference
1740 * count of a loaded dynamic-link library (DLL) by one, and then
1741 * calls ExitThread to terminate the calling thread.
1742 * The function does not return.
1743 *
1744 * The FreeLibraryAndExitThread function gives threads that are
1745 * created and executed within a dynamic-link library an opportunity
1746 * to safely unload the DLL and terminate themselves.
1747 * Parameters:
1748 * Variables :
1749 * Result :
1750 * Remark :
1751 * Status : UNTESTED STUB
1752 *
1753 * Author : Markus Montkowski [Tha, 1998/05/21 20:57]
1754 *****************************************************************************/
1755
1756VOID WIN32API FreeLibraryAndExitThread( HMODULE hLibModule, DWORD dwExitCode)
1757{
1758
1759 dprintf(("KERNEL32: FreeLibraryAndExitThread(%08x,%08x) not implemented\n",
1760 hLibModule, dwExitCode
1761 ));
1762
1763}
1764
1765
1766/*****************************************************************************
1767 * Name : int GetCurrencyFormatA
1768 * Purpose : The GetCurrencyFormatA function formats a number string as a
1769 * currency string for a specified locale.
1770 * Parameters: LCID Locale locale for which currency string is to be formatted
1771 * DWORD dwFlags bit flag that controls the function's operation
1772 * LPCTSTR lpValue pointer to input number string
1773 * CONST CURRENCYFMT *lpFormat pointer to a formatting information structure
1774 * LPTSTR lpCurrencyStr pointer to output buffer
1775 * int cchCurrency size of output buffer
1776 * Variables :
1777 * Result : number of bytes written to buffer
1778 * Remark :
1779 * Status : UNTESTED STUB
1780 *
1781 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1782 *****************************************************************************/
1783
1784int WIN32API GetCurrencyFormatA(LCID Locale,
1785 DWORD dwFlags,
1786 LPCTSTR lpValue,
1787 CONST CURRENCYFMTA *lpFormat,
1788 LPTSTR lpCurrencyStr,
1789 int cchCurrency)
1790{
1791 dprintf(("KERNEL32: GetCurrencyFormatA(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
1792 Locale,
1793 dwFlags,
1794 lpValue,
1795 lpFormat,
1796 lpCurrencyStr,
1797 cchCurrency));
1798
1799 if(lpValue && lpCurrencyStr) {
1800 lstrcpyA(lpCurrencyStr, lpValue);
1801 return lstrlenA(lpCurrencyStr);
1802 }
1803 return (0);
1804}
1805
1806
1807/*****************************************************************************
1808 * Name : int GetCurrencyFormatW
1809 * Purpose : The GetCurrencyFormatW function formats a number string as a
1810 * currency string for a specified locale.
1811 * Parameters: LCID Locale locale for which currency string is to be formatted
1812 * DWORD dwFlags bit flag that controls the function's operation
1813 * LPCWSTR lpValue pointer to input number string
1814 * CONST CURRENCYFMT *lpFormat pointer to a formatting information structure
1815 * LPWSTR lpCurrencyStr pointer to output buffer
1816 * int cchCurrency size of output buffer
1817 * Variables :
1818 * Result : number of bytes written to buffer
1819 * Remark :
1820 * Status : UNTESTED STUB
1821 *
1822 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1823 *****************************************************************************/
1824
1825int WIN32API GetCurrencyFormatW(LCID Locale,
1826 DWORD dwFlags,
1827 LPCWSTR lpValue,
1828 CONST CURRENCYFMTW *lpFormat,
1829 LPWSTR lpCurrencyStr,
1830 int cchCurrency)
1831{
1832 dprintf(("KERNEL32: GetCurrencyFormatW(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
1833 Locale,
1834 dwFlags,
1835 lpValue,
1836 lpFormat,
1837 lpCurrencyStr,
1838 cchCurrency));
1839
1840 if(lpValue && lpCurrencyStr) {
1841 lstrcpyW(lpCurrencyStr, lpValue);
1842 return lstrlenW(lpCurrencyStr);
1843 }
1844
1845 return (0);
1846}
1847
1848
1849/*****************************************************************************
1850 * Name : DWORD GetHandleInformation
1851 * Purpose : The GetHandleInformation function obtains information about certain
1852 * properties of an object handle. The information is obtained as a set of bit flags.
1853 * Parameters: HANDLE hObject
1854 * LPDWORD lpdwFlags
1855 * Variables :
1856 * Result : TRUE / FALSE
1857 * Remark :
1858 * Status : UNTESTED STUB
1859 *
1860 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1861 *****************************************************************************/
1862
1863BOOL WIN32API GetHandleInformation(HANDLE hObject,
1864 LPDWORD lpdwFlags)
1865{
1866 dprintf(("KERNEL32: GetHandleInformation (%08xh, %08xh) not implemented\n",
1867 hObject,
1868 lpdwFlags));
1869
1870 return (FALSE);
1871}
1872
1873
1874/*****************************************************************************
1875 * Name : BOOL GetMailslotInfo
1876 * Purpose : The GetMailslotInfo function retrieves information about the
1877 * specified mailslot.
1878 * Parameters: HANDLE hMailslot mailslot handle
1879 * LPDWORD lpMaxMessageSize address of maximum message size
1880 * LPDWORD lpNextSize address of size of next message
1881 * LPDWORD lpMessageCount address of number of messages
1882 * LPDWORD lpReadTimeout address of read time-out
1883 * Variables :
1884 * Result : TRUE / FALSE
1885 * Remark :
1886 * Status : UNTESTED STUB
1887 *
1888 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1889 *****************************************************************************/
1890
1891BOOL WIN32API GetMailslotInfo(HANDLE hMailslot,
1892 LPDWORD lpMaxMessageSize,
1893 LPDWORD lpNextSize,
1894 LPDWORD lpMessageCount,
1895 LPDWORD lpReadTimeout)
1896{
1897 dprintf(("KERNEL32: GetMailslotInfo(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
1898 hMailslot,
1899 lpMaxMessageSize,
1900 lpNextSize,
1901 lpMessageCount,
1902 lpReadTimeout));
1903
1904 return (FALSE);
1905}
1906
1907
1908/*****************************************************************************
1909 * Name : BOOL GetNamedPipeHandleStateA
1910 * Purpose : The GetNamedPipeHandleStateA function retrieves information about
1911 * a specified named pipe. The information returned can vary during
1912 * the lifetime of an instance of the named pipe.
1913 * Parameters: HANDLE hNamedPipe handle of named pipe
1914 * LPDWORD lpState address of flags indicating pipe state
1915 * LPDWORD lpCurInstances address of number of current pipe instances
1916 * LPDWORD lpMaxCollectionCount address of max. bytes before remote transmission
1917 * LPDWORD lpCollectDataTimeout address of max. time before remote transmission
1918 * LPTSTR lpUserName address of user name of client process
1919 * DWORD nMaxUserNameSize size, in characters, of user name buffer
1920 * Variables :
1921 * Result : TRUE / FALSE
1922 * Remark :
1923 * Status : UNTESTED STUB
1924 *
1925 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1926 *****************************************************************************/
1927
1928BOOL WIN32API GetNamedPipeHandleStateA(HANDLE hNamedPipe,
1929 LPDWORD lpState,
1930 LPDWORD lpCurInstances,
1931 LPDWORD lpMaxCollectionCount,
1932 LPDWORD lpCollectDataTimeout,
1933 LPTSTR lpUserName,
1934 DWORD nMaxUserNameSize)
1935{
1936 dprintf(("KERNEL32: GetNamedPipeHandleStateA(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
1937 hNamedPipe,
1938 lpState,
1939 lpCurInstances,
1940 lpMaxCollectionCount,
1941 lpCollectDataTimeout,
1942 lpUserName,
1943 nMaxUserNameSize));
1944
1945 return (FALSE);
1946}
1947
1948
1949/*****************************************************************************
1950 * Name : BOOL GetNamedPipeHandleStateW
1951 * Purpose : The GetNamedPipeHandleStateW function retrieves information about
1952 * a specified named pipe. The information returned can vary during
1953 * the lifetime of an instance of the named pipe.
1954 * Parameters: HANDLE hNamedPipe handle of named pipe
1955 * LPDWORD lpState address of flags indicating pipe state
1956 * LPDWORD lpCurInstances address of number of current pipe instances
1957 * LPDWORD lpMaxCollectionCount address of max. bytes before remote transmission
1958 * LPDWORD lpCollectDataTimeout address of max. time before remote transmission
1959 * LPWSTR lpUserName address of user name of client process
1960 * DWORD nMaxUserNameSize size, in characters, of user name buffer
1961 * Variables :
1962 * Result : TRUE / FALSE
1963 * Remark :
1964 * Status : UNTESTED STUB
1965 *
1966 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
1967 *****************************************************************************/
1968
1969BOOL WIN32API GetNamedPipeHandleStateW(HANDLE hNamedPipe,
1970 LPDWORD lpState,
1971 LPDWORD lpCurInstances,
1972 LPDWORD lpMaxCollectionCount,
1973 LPDWORD lpCollectDataTimeout,
1974 LPWSTR lpUserName,
1975 DWORD nMaxUserNameSize)
1976{
1977 dprintf(("KERNEL32: GetNamedPipeHandleStateW(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
1978 hNamedPipe,
1979 lpState,
1980 lpCurInstances,
1981 lpMaxCollectionCount,
1982 lpCollectDataTimeout,
1983 lpUserName,
1984 nMaxUserNameSize));
1985
1986 return (FALSE);
1987}
1988
1989
1990/*****************************************************************************
1991 * Name : BOOL GetNamedPipeInfo
1992 * Purpose : The GetNamedPipeInfo function retrieves information about the specified named pipe.
1993 * Parameters: HANDLE hNamedPipe handle of named pipe
1994 * LPDWORD lpFlags address of flags indicating type of pipe
1995 * LPDWORD lpOutBufferSize address of size, in bytes, of pipe's output buffer
1996 * LPDWORD lpInBufferSize address of size, in bytes, of pipe's input buffer
1997 * LPDWORD lpMaxInstances address of max. number of pipe instances
1998 * Variables :
1999 * Result : TRUE / FALSE
2000 * Remark :
2001 * Status : UNTESTED STUB
2002 *
2003 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2004 *****************************************************************************/
2005
2006BOOL WIN32API GetNamedPipeInfo(HANDLE hNamedPipe,
2007 LPDWORD lpFlags,
2008 LPDWORD lpOutBufferSize,
2009 LPDWORD lpInBufferSize,
2010 LPDWORD lpMaxInstances)
2011{
2012 dprintf(("KERNEL32: GetNamedPipeInfo(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
2013 hNamedPipe,
2014 lpFlags,
2015 lpOutBufferSize,
2016 lpInBufferSize,
2017 lpMaxInstances));
2018
2019 return (FALSE);
2020}
2021
2022
2023
2024/*****************************************************************************
2025 * Name : BOOL GetQueuedCompletionStatus
2026 * Purpose : The GetQueuedCompletionStatus function attempts to dequeue an
2027 * I/O completion packet from a specified input/output completion
2028 * port. If there is no completion packet queued, the function waits
2029 * for a pending input/output operation associated with the completion
2030 * port to complete. The function returns when it can dequeue a
2031 * completion packet, or optionally when the function times out. If
2032 * the function returns because of an I/O operation completion, it
2033 * sets several variables that provide information about the operation.
2034 * Parameters: HANDLE CompletionPort the I/O completion port of interest
2035 * LPDWORD lpNumberOfBytesTransferred to receive number of bytes transferred during I/O
2036 * LPDWORD lpCompletionKey to receive file's completion key
2037 * LPOVERLAPPED * lpOverlapped to receive pointer to OVERLAPPED structure
2038 * DWORD dwMilliseconds optional timeout value
2039 * Variables :
2040 * Result : TRUE / FALSE
2041 * Remark :
2042 * Status : UNTESTED STUB
2043 *
2044 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2045 *****************************************************************************/
2046
2047BOOL WIN32API GetQueuedCompletionStatus(HANDLE CompletionPort,
2048 LPDWORD lpNumberOfBytesTransferred,
2049 LPDWORD lpCompletionKey,
2050 LPOVERLAPPED *lpOverlapped,
2051 DWORD dwMilliseconds)
2052{
2053 dprintf(("Kernel32: GetQueuedCompletionStatus(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.",
2054 CompletionPort,
2055 lpNumberOfBytesTransferred,
2056 lpCompletionKey,
2057 lpOverlapped,
2058 dwMilliseconds));
2059
2060 return (FALSE);
2061}
2062
2063
2064
2065/*****************************************************************************
2066 * Name : BOOL GetSystemTimeAdjustment
2067 * Purpose : The GetSystemTimeAdjustment function determines whether the system
2068 * is applying periodic time adjustments to its time-of-day clock
2069 * at each clock interrupt, along with the value and period of any
2070 * such adjustments. Note that the period of such adjustments is
2071 * equivalent to the time period between clock interrupts.
2072 * Parameters: PDWORD lpTimeAdjustment
2073 * size, in 100-nanosecond units, of a periodic time adjustment
2074 * PDWORD lpTimeIncrement
2075 * time, in 100-nanosecond units, between periodic time adjustments
2076 * PBOOL lpTimeAdjustmentDisabled
2077 * whether periodic time adjustment is disabled or enabled
2078 * Variables :
2079 * Result : TRUE / FALSE
2080 * Remark :
2081 * Status : UNTESTED STUB
2082 *
2083 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2084 *****************************************************************************/
2085
2086BOOL WIN32API GetSystemTimeAdjustment(PDWORD lpTimeAdjustment,
2087 PDWORD lpTimeIncrement,
2088 PBOOL lpTimeAdjustmentDisabled)
2089{
2090 dprintf(("KERNEL32: GetSystemTimeAdjustment(%08xh,%08xh,%08xh) not implemented.\n",
2091 lpTimeAdjustment,
2092 lpTimeIncrement,
2093 lpTimeAdjustmentDisabled));
2094
2095 return (FALSE);
2096}
2097
2098
2099/*****************************************************************************
2100 * Name : BOOL GetTapeParameters
2101 * Purpose : The GetTapeParameters function retrieves information that
2102 * describes the tape or the tape drive.
2103 * Parameters: HANDLE hDevice handle of open device
2104 * DWORD dwOperation type of information requested
2105 * LPDWORD lpdwSize address of returned information
2106 * LPVOID lpTapeInformation tape media or drive information
2107 * Variables :
2108 * Result : API returncode
2109 * Remark :
2110 * Status : UNTESTED STUB
2111 *
2112 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2113 *****************************************************************************/
2114
2115DWORD WIN32API GetTapeParameters(HANDLE hDevice,
2116 DWORD dwOperation,
2117 LPDWORD lpdwSize,
2118 LPVOID lpTapeInformation)
2119{
2120 dprintf(("KERNEL32: GetTapeParameters(%08xh,%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2121 hDevice,
2122 dwOperation,
2123 lpdwSize,
2124 lpTapeInformation));
2125
2126 return (ERROR_NOT_SUPPORTED);
2127}
2128
2129
2130/*****************************************************************************
2131 * Name : BOOL GetTapePosition
2132 * Purpose : The GetTapePosition function retrieves the current address of
2133 * the tape, in logical or absolute blocks.
2134 * Parameters: HANDLE hDevice handle of open device
2135 * DWORD dwPositionType type of address to obtain
2136 * LPDWORD lpdwPartition address of current tape partition
2137 * LPDWORD lpdwOffsetLow address of low-order 32 bits of tape position
2138 * LPDWORD lpdwOffsetHigh address of high-order 32 bits of tape position
2139 * Variables :
2140 * Result : TRUE / FALSE
2141 * Remark :
2142 * Status : UNTESTED STUB
2143 *
2144 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2145 *****************************************************************************/
2146
2147DWORD WIN32API GetTapePosition(HANDLE hDevice,
2148 DWORD dwPositionType,
2149 LPDWORD lpdwPartition,
2150 LPDWORD lpdwOffsetLow,
2151 LPDWORD lpdwOffsetHigh)
2152{
2153 dprintf(("KERNEL32: OS2GetTapePosition(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2154 hDevice,
2155 dwPositionType,
2156 lpdwPartition,
2157 lpdwOffsetLow,
2158 lpdwOffsetHigh));
2159
2160 return (ERROR_NOT_SUPPORTED);
2161}
2162
2163
2164/*****************************************************************************
2165 * Name : BOOL GetTapeStatus
2166 * Purpose : The GetTapeStatus function indicates whether the tape device is
2167 * ready to process tape commands.
2168 * Parameters: HANDLE hDevice handle of open device
2169 * Variables :
2170 * Result : API returncode
2171 * Remark :
2172 * Status : UNTESTED STUB
2173 *
2174 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2175 *****************************************************************************/
2176
2177DWORD WIN32API GetTapeStatus(HANDLE hDevice)
2178{
2179 dprintf(("KERNEL32: OS2GetTapeStatus(%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2180 hDevice));
2181
2182 return (ERROR_NOT_SUPPORTED);
2183}
2184
2185
2186/*****************************************************************************
2187 * Name : BOOL GetThreadSelectorEntry
2188 * Purpose : The GetThreadSelectorEntry function retrieves a descriptor table
2189 * entry for the specified selector and thread.
2190 * Parameters: HANDLE hThread handle of thread that contains selector
2191 * DWORD dwSelector number of selector value to look up
2192 * LPLDT_ENTRY lpSelectorEntry address of selector entry structure
2193 * Variables :
2194 * Result : TRUE / FALSE
2195 * Remark :
2196 * Status : UNTESTED STUB
2197 *
2198 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2199 *****************************************************************************/
2200
2201BOOL WIN32API GetThreadSelectorEntry(HANDLE hThread,
2202 DWORD dwSelector,
2203 LPLDT_ENTRY lpSelectorEntry)
2204{
2205 dprintf(("KERNEL32: GetThreadSelectorEntry(%08xh,%08xh,%08xh) not implemented.\n",
2206 hThread,
2207 dwSelector,
2208 lpSelectorEntry));
2209
2210 return (FALSE);
2211}
2212
2213
2214/*****************************************************************************
2215 * Name : BOOL GetThreadTimes
2216 * Purpose : The GetThreadTimes function obtains timing information about a specified thread.
2217 * Parameters: HANDLE hThread specifies the thread of interest
2218 * LPFILETIME lpCreationTime when the thread was created
2219 * LPFILETIME lpExitTime when the thread exited
2220 * LPFILETIME lpKernelTime time the thread has spent in kernel mode
2221 * LPFILETIME lpUserTime time the thread has spent in user mode
2222 * Variables :
2223 * Result : TRUE / FALSE
2224 * Remark :
2225 * Status : UNTESTED STUB
2226 *
2227 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2228 *****************************************************************************/
2229
2230BOOL WIN32API GetThreadTimes(HANDLE hThread,
2231 LPFILETIME lpCreationTime,
2232 LPFILETIME lpExitTime,
2233 LPFILETIME lpKernelTime,
2234 LPFILETIME lpUserTime)
2235{
2236 dprintf(("Kernel32: GetThreadTimes(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2237 hThread,
2238 lpCreationTime,
2239 lpExitTime,
2240 lpKernelTime,
2241 lpUserTime));
2242
2243 return (FALSE);
2244}
2245
2246
2247
2248/*****************************************************************************
2249 * Name : BOOL PostQueuedCompletionStatus
2250 * Purpose : The PostQueuedCompletionStatus function lets you post an I/O
2251 * completion packet to an I/O completion port. The I/O completion
2252 * packet will satisfy an outstanding call to the GetQueuedCompletionStatus
2253 * function. The GetQueuedCompletionStatus function returns with the three
2254 * values passed as the second, third, and fourth parameters of the call
2255 * to PostQueuedCompletionStatus.
2256 * Parameters: HANDLE CompletionPort handle to an I/O completion port
2257 * DWORD dwNumberOfBytesTransferred
2258 * DWORD dwCompletionKey
2259 * LPOVERLAPPED lpOverlapped
2260 * Variables :
2261 * Result : TRUE / FALSE
2262 * Remark :
2263 * Status : UNTESTED STUB
2264 *
2265 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2266 *****************************************************************************/
2267
2268BOOL WIN32API PostQueuedCompletionStatus(HANDLE CompletionPort,
2269 DWORD dwNumberOfBytesTransferred,
2270 DWORD dwCompletionKey,
2271 LPOVERLAPPED lpOverlapped)
2272{
2273 dprintf(("Kernel32: PostQueuedCompletionStatus(%08xh,%08xh,%08xh,%08xh) not implemented.",
2274 CompletionPort,
2275 dwNumberOfBytesTransferred,
2276 dwCompletionKey,
2277 lpOverlapped));
2278
2279 return (FALSE);
2280}
2281
2282
2283/*****************************************************************************
2284 * Name : DWORD PrepareTape
2285 * Purpose : The PrepareTape function prepares the tape to be accessed or removed.
2286 * Parameters: HANDLE hDevice handle of open device
2287 * DWORD dwOperation preparation method
2288 * BOOL bImmediate return after operation begins
2289 * Variables :
2290 * Result : API returncode
2291 * Remark :
2292 * Status : UNTESTED STUB
2293 *
2294 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2295 *****************************************************************************/
2296
2297DWORD WIN32API PrepareTape(HANDLE hDevice,
2298 DWORD dwOperation,
2299 BOOL bImmediate)
2300{
2301 dprintf(("Kernel32: PrepareTape(%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2302 hDevice,
2303 dwOperation,
2304 bImmediate));
2305
2306 return (ERROR_NOT_SUPPORTED);
2307}
2308
2309
2310/*****************************************************************************
2311 * Name : DWORD QueryDosDeviceA
2312 * Purpose : The QueryDosDevice function lets an application obtain information
2313 * about MS-DOS device names. The function can obtain the current
2314 * mapping for a particular MS-DOS device name. The function can also
2315 * obtain a list of all existing MS-DOS device names.
2316 * MS-DOS device names are stored as symbolic links in the Windows NT
2317 * object name space. The code that converts an MS-DOS path into a
2318 * corresponding Windows NT path uses these symbolic links to map
2319 * MS-DOS devices and drive letters. The QueryDosDevice function
2320 * provides a mechanism whereby a Win32-based application can query
2321 * the names of the symbolic links used to implement the MS-DOS device
2322 * namespace as well as the value of each specific symbolic link.
2323 * Parameters: LPCTSTR lpDeviceName address of MS-DOS device name string
2324 * LPTSTR lpTargetPath ddress of buffer for storing query results
2325 * DWORD ucchMax maximum storage capacity of buffer
2326 * Variables :
2327 * Result : pointer to lpTargetPath
2328 * Remark :
2329 * Status : UNTESTED STUB
2330 *
2331 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2332 *****************************************************************************/
2333
2334DWORD WIN32API QueryDosDeviceA(LPCTSTR lpDeviceName,
2335 LPTSTR lpTargetPath,
2336 DWORD ucchMax)
2337{
2338 dprintf(("Kernel32: QueryDosDeviceA(%s,%08xh,%08xh) not implemented.\n",
2339 lpDeviceName,
2340 lpTargetPath,
2341 ucchMax));
2342
2343 return (0);
2344}
2345
2346
2347/*****************************************************************************
2348 * Name : DWORD QueryDosDeviceW
2349 * Purpose : The QueryDosDevice function lets an application obtain information
2350 * about MS-DOS device names. The function can obtain the current
2351 * mapping for a particular MS-DOS device name. The function can also
2352 * obtain a list of all existing MS-DOS device names.
2353 * MS-DOS device names are stored as symbolic links in the Windows NT
2354 * object name space. The code that converts an MS-DOS path into a
2355 * corresponding Windows NT path uses these symbolic links to map
2356 * MS-DOS devices and drive letters. The QueryDosDevice function
2357 * provides a mechanism whereby a Win32-based application can query
2358 * the names of the symbolic links used to implement the MS-DOS device
2359 * namespace as well as the value of each specific symbolic link.
2360 * Parameters: LPCTSTR lpDeviceName address of MS-DOS device name string
2361 * LPTSTR lpTargetPath ddress of buffer for storing query results
2362 * DWORD ucchMax maximum storage capacity of buffer
2363 * Variables :
2364 * Result : pointer to lpTargetPath
2365 * Remark :
2366 * Status : UNTESTED STUB
2367 *
2368 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2369 *****************************************************************************/
2370
2371DWORD WIN32API QueryDosDeviceW(LPCWSTR lpDeviceName,
2372 LPWSTR lpTargetPath,
2373 DWORD ucchMax)
2374{
2375 dprintf(("Kernel32: QueryDosDeviceW(%s,%08xh,%08xh) not implemented.\n",
2376 lpDeviceName,
2377 lpTargetPath,
2378 ucchMax));
2379
2380 return (0);
2381}
2382
2383
2384/*****************************************************************************
2385 * Name : DWORD ReadProcessMemory
2386 * Purpose : The ReadProcessMemory function reads memory in a specified process.
2387 * The entire area to be read must be accessible, or the operation fails.
2388 * Parameters: HANDLE hProcess handle of the process whose memory is read
2389 * LPCVOID lpBaseAddress address to start reading
2390 * LPVOID lpBuffer address of buffer to place read data
2391 * DWORD cbRead number of bytes to read
2392 * LPDWORD lpNumberOfBytesRead address of number of bytes read
2393 * Variables :
2394 * Result : TRUE / FALSE
2395 * Remark :
2396 * Status : UNTESTED STUB
2397 *
2398 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2399 *****************************************************************************/
2400
2401DWORD WIN32API ReadProcessMemory(HANDLE hProcess,
2402 LPCVOID lpBaseAddress,
2403 LPVOID lpBuffer,
2404 DWORD cbRead,
2405 LPDWORD lpNumberOfBytesRead)
2406{
2407 dprintf(("Kernel32: ReadProcessMemory(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2408 hProcess,
2409 lpBaseAddress,
2410 lpBuffer,
2411 cbRead,
2412 lpNumberOfBytesRead));
2413 // FIXME: check this, if we ever run win32 binaries in different addressspaces
2414 // ... and add a sizecheck
2415 memcpy(lpBuffer,lpBaseAddress,cbRead);
2416 if (lpNumberOfBytesRead) *lpNumberOfBytesRead = cbRead;
2417 return TRUE;
2418}
2419
2420/*****************************************************************************
2421 * Name : DWORD WriteProcessMemory
2422 * Purpose : The WriteProcessMemory function writes memory in a specified
2423 * process. The entire area to be written to must be accessible,
2424 * or the operation fails.
2425 * Parameters: HANDLE hProcess handle of process whose memory is written to
2426 * LPVOID lpBaseAddress address to start writing to
2427 * LPVOID lpBuffer address of buffer to write data to
2428 * DWORD cbWrite number of bytes to write
2429 * LPDWORD lpNumberOfBytesWritten actual number of bytes written
2430 * Variables :
2431 * Result : TRUE / FALSE
2432 * Remark :
2433 * Status : UNTESTED STUB
2434 *
2435 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2436 *****************************************************************************/
2437
2438DWORD WIN32API WriteProcessMemory(HANDLE hProcess,
2439 LPCVOID lpBaseAddress,
2440 LPVOID lpBuffer,
2441 DWORD cbWrite,
2442 LPDWORD lpNumberOfBytesWritten)
2443{
2444 dprintf(("Kernel32: WriteProcessMemory(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2445 hProcess,
2446 lpBaseAddress,
2447 lpBuffer,
2448 cbWrite,
2449 lpNumberOfBytesWritten));
2450
2451 // FIXME: check this, if we ever run win32 binaries in different addressspaces
2452 // ... and add a sizecheck
2453 memcpy((void*)lpBaseAddress,lpBuffer,cbWrite);
2454 if (lpNumberOfBytesWritten) *lpNumberOfBytesWritten = cbWrite;
2455 return TRUE;
2456}
2457
2458
2459/*****************************************************************************
2460 * Name : BOOL SetComputerNameA
2461 * Purpose : The SetComputerNameA function sets the computer name to be used
2462 * the next time the system is restarted.
2463 * Parameters: LPCTSTR lpszName address of new computer name
2464 * Variables :
2465 * Result : TRUE / FALSE
2466 * Remark :
2467 * Status : UNTESTED STUB
2468 *
2469 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2470 *****************************************************************************/
2471
2472BOOL WIN32API SetComputerNameA(LPCTSTR lpszName)
2473{
2474 dprintf(("Kernel32: SetComputerNameA(%s) not implemented.\n",
2475 lpszName));
2476
2477 return (FALSE);
2478}
2479
2480
2481/*****************************************************************************
2482 * Name : BOOL SetComputerNameW
2483 * Purpose : The SetComputerNameW function sets the computer name to be used
2484 * the next time the system is restarted.
2485 * Parameters: LPCTSTR lpszName address of new computer name
2486 * Variables :
2487 * Result : TRUE / FALSE
2488 * Remark :
2489 * Status : UNTESTED STUB
2490 *
2491 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2492 *****************************************************************************/
2493
2494BOOL WIN32API SetComputerNameW(LPCWSTR lpszName)
2495{
2496 dprintf(("Kernel32: SetComputerNameW(%s) not implemented.\n",
2497 lpszName));
2498
2499 return (FALSE);
2500}
2501
2502
2503/*****************************************************************************
2504 * Name : VOID SetFileApisToOEM
2505 * Purpose : The SetFileApisToOEM function causes a set of Win32 file functions
2506 * to use the OEM character set code page. This function is useful
2507 * for 8-bit console input and output operations.
2508 * Parameters: VOID
2509 * Variables :
2510 * Result :
2511 * Remark :
2512 * Status : UNTESTED STUB
2513 *
2514 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2515 *****************************************************************************/
2516
2517VOID WIN32API SetFileApisToOEM(VOID)
2518{
2519 dprintf(("Kernel32: SetFileApisToOEM() not implemented.\n"));
2520}
2521
2522
2523/*****************************************************************************
2524 * Name : BOOL SetHandleInformation
2525 * Purpose : The SetHandleInformation function sets certain properties of an
2526 * object handle. The information is specified as a set of bit flags.
2527 * Parameters: HANDLE hObject handle to an object
2528 * DWORD dwMask specifies flags to change
2529 * DWORD dwFlags specifies new values for flags
2530 * Variables :
2531 * Result : TRUE / FALSE
2532 * Remark :
2533 * Status : UNTESTED STUB
2534 *
2535 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2536 *****************************************************************************/
2537
2538BOOL WIN32API SetHandleInformation(HANDLE hObject,
2539 DWORD dwMask,
2540 DWORD dwFlags)
2541{
2542 dprintf(("KERNEL32: SetHandleInformation(%08xh,%08xh,%08xh) not implemented.\n",
2543 hObject,
2544 dwMask,
2545 dwFlags));
2546
2547 return (FALSE);
2548}
2549
2550
2551/*****************************************************************************
2552 * Name : BOOL SetMailslotInfo
2553 * Purpose : The SetMailslotInfo function sets the time-out value used by the
2554 * specified mailslot for a read operation.
2555 * Parameters: HANDLE hObject handle to a mailslot object
2556 * DWORD dwReadTimeout read time-out
2557 * Variables :
2558 * Result : TRUE / FALSE
2559 * Remark :
2560 * Status : UNTESTED STUB
2561 *
2562 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2563 *****************************************************************************/
2564
2565BOOL WIN32API SetMailslotInfo(HANDLE hObject,
2566 DWORD dwReadTimeout)
2567{
2568 dprintf(("KERNEL32: SetMailslotInfo(%08xh,%08xh) not implemented.\n",
2569 hObject,
2570 dwReadTimeout));
2571
2572 return (FALSE);
2573}
2574
2575
2576/*****************************************************************************
2577 * Name : BOOL SetNamedPipeHandleState
2578 * Purpose : The SetNamedPipeHandleState function sets the read mode and the
2579 * blocking mode of the specified named pipe. If the specified handle
2580 * is to the client end of a named pipe and if the named pipe server
2581 * process is on a remote computer, the function can also be used to
2582 * control local buffering.
2583 * Parameters: HANDLE hNamedPipe handle of named pipe
2584 * LPDWORD lpdwMode address of new pipe mode
2585 * LPDWORD lpcbMaxCollect address of max. bytes before remote transmission
2586 * LPDWORD lpdwCollectDataTimeout address of max. time before remote transmission
2587 * Variables :
2588 * Result : TRUE / FALSE
2589 * Remark :
2590 * Status : UNTESTED STUB
2591 *
2592 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2593 *****************************************************************************/
2594
2595BOOL WIN32API SetNamedPipeHandleState(HANDLE hNamedPipe,
2596 LPDWORD lpdwMode,
2597 LPDWORD lpcbMaxCollect,
2598 LPDWORD lpdwCollectDataTimeout)
2599{
2600 dprintf(("KERNEL32: SetNamedPipeHandleState(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2601 hNamedPipe,
2602 lpdwMode,
2603 lpcbMaxCollect,
2604 lpdwCollectDataTimeout));
2605
2606 return (FALSE);
2607}
2608
2609/*****************************************************************************
2610 * Name : BOOL SetSystemPowerState
2611 * Purpose : The SetSystemPowerState function suspends the system by shutting
2612 * power down. Depending on the ForceFlag parameter, the function
2613 * either suspends operation immediately or requests permission from
2614 * all applications and device drivers before doing so.
2615 * Parameters: BOOL fSuspend
2616 * BOOL fForce
2617 * Variables :
2618 * Result : TRUE / FALSE
2619 * Remark :
2620 * Status : UNTESTED STUB
2621 *
2622 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2623 *****************************************************************************/
2624
2625BOOL WIN32API SetSystemPowerState(BOOL fSuspend,
2626 BOOL fForce)
2627{
2628 dprintf(("KERNEL32: SetSystemPowerState(%08xh,%08xh) not implemented.\n",
2629 fSuspend,
2630 fForce));
2631
2632 return (FALSE);
2633}
2634
2635
2636/*****************************************************************************
2637 * Name : BOOL SetSystemTimeAdjustment
2638 * Purpose : The SetSystemTimeAdjustment function tells the system to enable
2639 * or disable periodic time adjustments to its time of day clock.
2640 * Such time adjustments are used to synchronize the time of day
2641 * with some other source of time information. When periodic time
2642 * adjustments are enabled, they are applied at each clock interrupt.
2643 * Parameters: DWORD dwTimeAdjustment
2644 * BOOL bTimeAdjustmentDisabled
2645 * Variables :
2646 * Result : TRUE / FALSE
2647 * Remark :
2648 * Status : UNTESTED STUB
2649 *
2650 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2651 *****************************************************************************/
2652
2653BOOL WIN32API SetSystemTimeAdjustment(DWORD dwTimeAdjustment,
2654 BOOL bTimeAdjustmentDisabled)
2655{
2656 dprintf(("KERNEL32: SetSystemTimeAdjustment(%08xh,%08xh) not implemented.\n",
2657 dwTimeAdjustment,
2658 bTimeAdjustmentDisabled));
2659
2660 return (FALSE);
2661}
2662
2663
2664/*****************************************************************************
2665 * Name : DWORD SetTapeParameters
2666 * Purpose : The SetTapeParameters function either specifies the block size
2667 * of a tape or configures the tape device.
2668 * Parameters: HANDLE hDevice handle of open device
2669 * DWORD dwOperation type of information to set
2670 * LPVOID lpTapeInformation address of buffer with information to set
2671 * Variables :
2672 * Result : API returncode
2673 * Remark :
2674 * Status : UNTESTED STUB
2675 *
2676 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2677 *****************************************************************************/
2678
2679BOOL WIN32API SetTapeParameters(HANDLE hDevice,
2680 DWORD dwOperation,
2681 LPVOID lpTapeInformation)
2682{
2683 dprintf(("KERNEL32: SetTapeParameters(%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2684 hDevice,
2685 dwOperation,
2686 lpTapeInformation));
2687
2688 return (ERROR_NOT_SUPPORTED);
2689}
2690
2691
2692/*****************************************************************************
2693 * Name : DWORD SetTapePosition
2694 * Purpose : The SetTapePosition sets the tape position on the specified device.
2695 * Parameters: HANDLE hDevice handle of open device
2696 * DWORD dwPositionMethod type of positioning to perform
2697 * DWORD dwPartition new tape partition
2698 * DWORD dwOffsetLow low-order 32 bits of tape position
2699 * DWORD dwOffsetHigh high-order 32 bits of tape position
2700 * BOOL bImmediate return after operation begins
2701 * Variables :
2702 * Result : API returncode
2703 * Remark :
2704 * Status : UNTESTED STUB
2705 *
2706 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2707 *****************************************************************************/
2708
2709BOOL WIN32API SetTapePosition(HANDLE hDevice,
2710 DWORD dwPositionMethod,
2711 DWORD dwPartition,
2712 DWORD dwOffsetLow,
2713 DWORD dwOffsetHigh,
2714 BOOL bImmediate)
2715{
2716 dprintf(("KERNEL32: SetTapePosition(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2717 hDevice,
2718 dwPositionMethod,
2719 dwPartition,
2720 dwOffsetLow,
2721 dwOffsetHigh,
2722 bImmediate));
2723
2724 return (ERROR_NOT_SUPPORTED);
2725}
2726
2727
2728/*****************************************************************************
2729 * Name : DWORD SetThreadAffinityMask
2730 * Purpose : The SetThreadAffinityMask function sets a processor affinity
2731 * mask for a specified thread.
2732 * A thread affinity mask is a bit vector in which each bit
2733 * represents the processors that a thread is allowed to run on.
2734 * A thread affinity mask must be a proper subset of the process
2735 * affinity mask for the containing process of a thread. A thread
2736 * is only allowed to run on the processors its process is allowed to run on.
2737 * Parameters: HANDLE hThread handle to the thread of interest
2738 * DWORD dwThreadAffinityMask a thread affinity mask
2739 * Variables :
2740 * Result : TRUE / FALSE
2741 * Remark :
2742 * Status : UNTESTED STUB
2743 *
2744 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2745 *****************************************************************************/
2746
2747DWORD WIN32API SetThreadAffinityMask(HANDLE hThread,
2748 DWORD dwThreadAffinityMask)
2749{
2750 dprintf(("KERNEL32: SetThreadAffinityMask(%08xh,%08xh) not implemented.\n",
2751 hThread,
2752 dwThreadAffinityMask));
2753
2754 return (0);
2755}
2756
2757
2758/*****************************************************************************
2759 * Name : DWORD TransactNamedPipe
2760 * Purpose : The TransactNamedPipe function combines into a single network
2761 * operation the functions that write a message to and read a
2762 * message from the specified named pipe.
2763 * Parameters: HANDLE hNamedPipe handle of named pipe
2764 * LPVOID lpvWriteBuf address of write buffer
2765 * DWORD cbWriteBuf size of the write buffer, in bytes
2766 * LPVOID lpvReadBuf address of read buffer
2767 * DWORD cbReadBuf size of read buffer, in bytes
2768 * LPDWORD lpcbRead address of variable for bytes actually read
2769 * LPOVERLAPPED lpo address of overlapped structure
2770 * Variables :
2771 * Result : TRUE / FALSE
2772 * Remark :
2773 * Status : UNTESTED STUB
2774 *
2775 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2776 *****************************************************************************/
2777
2778DWORD WIN32API TransactNamedPipe(HANDLE hNamedPipe,
2779 LPVOID lpvWriteBuf,
2780 DWORD cbWriteBuf,
2781 LPVOID lpvReadBuf,
2782 DWORD cbReadBuf,
2783 LPDWORD lpcbRead,
2784 LPOVERLAPPED lpo)
2785{
2786 dprintf(("KERNEL32: TransactNamedPipe(%08x,%08x,%08x,%08x,%08x,%08x,%08x) not implemented.\n",
2787 hNamedPipe,
2788 lpvWriteBuf,
2789 cbWriteBuf,
2790 lpvReadBuf,
2791 cbReadBuf,
2792 lpcbRead,
2793 lpo));
2794
2795 return (FALSE);
2796}
2797
2798
2799/*****************************************************************************
2800 * Name : BOOL UpdateResourceA
2801 * Purpose : The UpdateResourceA function adds, deletes, or replaces a resource
2802 * in an executable file.
2803 * Parameters: HANDLE hUpdateFile update-file handle
2804 * LPCTSTR lpszType address of resource type to update
2805 * LPCTSTR lpszName address of resource name to update
2806 * WORD IDLanguage language identifier of resource
2807 * LPVOID lpvData address of resource data
2808 * DWORD cbData length of resource data, in bytes
2809 * Variables :
2810 * Result : TRUE / FALSE
2811 * Remark :
2812 * Status : UNTESTED STUB
2813 *
2814 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2815 *****************************************************************************/
2816
2817BOOL WIN32API UpdateResourceA(HANDLE hUpdateFile,
2818 LPCTSTR lpszType,
2819 LPCTSTR lpszName,
2820 WORD IDLanguage,
2821 LPVOID lpvData,
2822 DWORD cbData)
2823{
2824 dprintf(("KERNEL32: UpdateResourceA(%08xh,%s,%s,%08xh,%08xh,%08xh) not implemented.\n",
2825 hUpdateFile,
2826 lpszType,
2827 lpszName,
2828 IDLanguage,
2829 lpvData,
2830 cbData));
2831
2832 return (FALSE);
2833}
2834
2835
2836/*****************************************************************************
2837 * Name : BOOL UpdateResourceW
2838 * Purpose : The UpdateResourceW function adds, deletes, or replaces a resource
2839 * in an executable file.
2840 * Parameters: HANDLE hUpdateFile update-file handle
2841 * LPCTSTR lpszType address of resource type to update
2842 * LPCTSTR lpszName address of resource name to update
2843 * WORD IDLanguage language identifier of resource
2844 * LPVOID lpvData address of resource data
2845 * DWORD cbData length of resource data, in bytes
2846 * Variables :
2847 * Result : TRUE / FALSE
2848 * Remark :
2849 * Status : UNTESTED STUB
2850 *
2851 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2852 *****************************************************************************/
2853
2854BOOL WIN32API UpdateResourceW(HANDLE hUpdateFile,
2855 LPCWSTR lpszType,
2856 LPCWSTR lpszName,
2857 WORD IDLanguage,
2858 LPVOID lpvData,
2859 DWORD cbData)
2860{
2861 dprintf(("KERNEL32: UpdateResourceW(%08xh,%s,%s,%08xh,%08xh,%08xh) not implemented.\n",
2862 hUpdateFile,
2863 lpszType,
2864 lpszName,
2865 IDLanguage,
2866 lpvData,
2867 cbData));
2868
2869 return (FALSE);
2870}
2871
2872
2873/*****************************************************************************
2874 * Name : BOOL WaitForDebugEvent
2875 * Purpose : The WaitForDebugEvent function waits for a debugging event to
2876 * occur in a process being debugged.
2877 * Parameters: LPDEBUG_EVENT lpde address of structure for event information
2878 * DWORD dwTimeout number of milliseconds to wait for event
2879 * Variables :
2880 * Result : TRUE / FALSE
2881 * Remark :
2882 * Status : UNTESTED STUB
2883 *
2884 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2885 *****************************************************************************/
2886
2887BOOL WIN32API WaitForDebugEvent(LPDEBUG_EVENT lpde,
2888 DWORD dwTimeout)
2889{
2890 dprintf(("KERNEL32: WaitForDebugEvent(%08xh,%08xh) not implemented.\n",
2891 lpde,
2892 dwTimeout));
2893
2894 return (FALSE);
2895}
2896
2897
2898/*****************************************************************************
2899 * Name : BOOL WaitNamedPipeA
2900 * Purpose : The WaitNamedPipe function waits until either a time-out interval
2901 * elapses or an instance of the specified named pipe is available
2902 * to be connected to (that is, the pipe's server process has a
2903 * pending ConnectNamedPipe operation on the pipe).
2904 * Parameters: LPCTSTR lpszNamedPipeName
2905 * DWORD dwTimeout
2906 * Variables :
2907 * Result : TRUE / FALSE
2908 * Remark :
2909 * Status : UNTESTED STUB
2910 *
2911 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2912 *****************************************************************************/
2913
2914BOOL WIN32API WaitNamedPipeA(LPCTSTR lpszNamedPipeName,
2915 DWORD dwTimeout)
2916{
2917 dprintf(("KERNEL32: WaitNamedPipeA(%s, %u) not implemented.\n",
2918 lpszNamedPipeName,
2919 dwTimeout));
2920
2921 return (FALSE);
2922}
2923
2924
2925/*****************************************************************************
2926 * Name : BOOL WaitNamedPipeW
2927 * Purpose : The WaitNamedPipe function waits until either a time-out interval
2928 * elapses or an instance of the specified named pipe is available
2929 * to be connected to (that is, the pipe's server process has a
2930 * pending ConnectNamedPipe operation on the pipe).
2931 * Parameters: LPCWSTR lpszNamedPipeName
2932 * DWORD dwTimeout
2933 * Variables :
2934 * Result : TRUE / FALSE
2935 * Remark :
2936 * Status : UNTESTED STUB
2937 *
2938 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2939 *****************************************************************************/
2940
2941BOOL WIN32API WaitNamedPipeW(LPCWSTR lpszNamedPipeName,
2942 DWORD dwTimeout)
2943{
2944 dprintf(("KERNEL32: WaitNamedPipeW(%s, %u) not implemented.\n",
2945 lpszNamedPipeName,
2946 dwTimeout));
2947
2948 return (FALSE);
2949}
2950
2951
2952
2953
2954/*****************************************************************************
2955 * Name : BOOL WriteTapemark
2956 * Purpose : The WriteTapemark function writes a specified number of filemarks,
2957 * setmarks, short filemarks, or long filemarks to a tape device.
2958 * These tapemarks divide a tape partition into smaller areas.
2959 * Parameters: HANDLE hDevice handle of open device
2960 * DWORD dwTapemarkType type of tapemarks to write
2961 * DWORD dwTapemarkCount number of tapemarks to write
2962 * BOOL bImmediate return after write begins
2963 * Variables :
2964 * Result : API returncode
2965 * Remark :
2966 * Status : UNTESTED STUB
2967 *
2968 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
2969 *****************************************************************************/
2970
2971DWORD WIN32API WriteTapemark(HANDLE hDevice,
2972 DWORD dwTapemarkType,
2973 DWORD dwTapemarkCount,
2974 BOOL bImmediate)
2975{
2976 dprintf(("KERNEL32: WriteTapemark(%08xh,%08xh,%08xh,%08xh) not implemented - ERROR_NOT_SUPPORTED.\n",
2977 hDevice,
2978 dwTapemarkType,
2979 dwTapemarkCount,
2980 bImmediate));
2981
2982 return (ERROR_NOT_SUPPORTED);
2983}
2984
2985
2986/*****************************************************************************
2987 * Name : DWORD CmdBatNotification
2988 * Purpose : Unknown, used by /winnt/cmd.exe
2989 * Parameters: Unknown (wrong)
2990 * Variables :
2991 * Result : Unknown
2992 * Remark :
2993 * Status : UNTESTED STUB
2994 *
2995 * Author : Patrick Haller [Tue, 1999/06/08 21:44]
2996 *****************************************************************************/
2997
2998DWORD WIN32API CmdBatNotification(DWORD x1)
2999{
3000 dprintf(("KERNEL32: CmdBatNotification(%08xh) not implemented\n",
3001 x1));
3002
3003 return (0);
3004}
3005
3006
3007/*****************************************************************************
3008 * Name : DWORD GetVDMCurrentDirectories
3009 * Purpose : Unknown, used by /winnt/cmd.exe
3010 * Parameters: Unknown (wrong)
3011 * Variables :
3012 * Result : Unknown
3013 * Remark :
3014 * Status : UNTESTED STUB
3015 *
3016 * Author : Patrick Haller [Tue, 1999/06/08 21:44]
3017 *****************************************************************************/
3018
3019DWORD WIN32API GetVDMCurrentDirectories(DWORD x1)
3020{
3021 dprintf(("KERNEL32: GetVDMCurrentDirectories(%08xh) not implemented\n",
3022 x1));
3023
3024 return (0);
3025}
3026
3027
3028/*****************************************************************************
3029 * Name : DWORD SetThreadPriorityBoost
3030 * Purpose : Unknown
3031 * Parameters: Unknown (wrong)
3032 * Variables :
3033 * Result : Unknown
3034 * Remark :
3035 * Status : UNTESTED STUB
3036 *
3037 * Author : Patrick Haller [Tue, 1999/06/08 21:44]
3038 *****************************************************************************/
3039
3040DWORD WIN32API SetThreadPriorityBoost(DWORD x1,
3041 DWORD x2)
3042{
3043 dprintf(("KERNEL32: SetThreadPriorityBoost(%08xh, %08xh) not implemented\n",
3044 x1,
3045 x2));
3046
3047 return (0);
3048}
3049
3050
Note: See TracBrowser for help on using the repository browser.