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

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

partly implemented GetCurrencyFormatA/W

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