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

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

FindResourceExA/W implemented, CreateProcessW bugfix

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