Stub implementation of the dmusic dll.
[wine/testsucceed.git] / dlls / kernel / sync.c
blob53671c7d5e45338aea84d1815b7de3e2dffa164f
1 /*
2 * Kernel synchronization objects
4 * Copyright 1998 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
22 #include "wine/port.h"
24 #include <string.h>
25 #ifdef HAVE_UNISTD_H
26 # include <unistd.h>
27 #endif
28 #include <errno.h>
29 #ifdef HAVE_SYS_IOCTL_H
30 #include <sys/ioctl.h>
31 #endif
32 #ifdef HAVE_SYS_POLL_H
33 #include <sys/poll.h>
34 #endif
36 #include "winbase.h"
37 #include "winerror.h"
38 #include "winnls.h"
40 #include "wine/server.h"
41 #include "wine/unicode.h"
42 #include "file.h"
44 #include "wine/debug.h"
46 WINE_DEFAULT_DEBUG_CHANNEL(win32);
49 * Events
53 /***********************************************************************
54 * CreateEventA (KERNEL32.@)
56 HANDLE WINAPI CreateEventA( SECURITY_ATTRIBUTES *sa, BOOL manual_reset,
57 BOOL initial_state, LPCSTR name )
59 WCHAR buffer[MAX_PATH];
61 if (!name) return CreateEventW( sa, manual_reset, initial_state, NULL );
63 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
65 SetLastError( ERROR_FILENAME_EXCED_RANGE );
66 return 0;
68 return CreateEventW( sa, manual_reset, initial_state, buffer );
72 /***********************************************************************
73 * CreateEventW (KERNEL32.@)
75 HANDLE WINAPI CreateEventW( SECURITY_ATTRIBUTES *sa, BOOL manual_reset,
76 BOOL initial_state, LPCWSTR name )
78 HANDLE ret;
79 DWORD len = name ? strlenW(name) : 0;
80 if (len >= MAX_PATH)
82 SetLastError( ERROR_FILENAME_EXCED_RANGE );
83 return 0;
85 /* one buggy program needs this
86 * ("Van Dale Groot woordenboek der Nederlandse taal")
88 if (sa && IsBadReadPtr(sa,sizeof(SECURITY_ATTRIBUTES)))
90 ERR("Bad security attributes pointer %p\n",sa);
91 SetLastError( ERROR_INVALID_PARAMETER);
92 return 0;
94 SERVER_START_REQ( create_event )
96 req->manual_reset = manual_reset;
97 req->initial_state = initial_state;
98 req->inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
99 wine_server_add_data( req, name, len * sizeof(WCHAR) );
100 SetLastError(0);
101 wine_server_call_err( req );
102 ret = reply->handle;
104 SERVER_END_REQ;
105 return ret;
109 /***********************************************************************
110 * CreateW32Event (KERNEL.457)
112 HANDLE WINAPI WIN16_CreateEvent( BOOL manual_reset, BOOL initial_state )
114 return CreateEventA( NULL, manual_reset, initial_state, NULL );
118 /***********************************************************************
119 * OpenEventA (KERNEL32.@)
121 HANDLE WINAPI OpenEventA( DWORD access, BOOL inherit, LPCSTR name )
123 WCHAR buffer[MAX_PATH];
125 if (!name) return OpenEventW( access, inherit, NULL );
127 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
129 SetLastError( ERROR_FILENAME_EXCED_RANGE );
130 return 0;
132 return OpenEventW( access, inherit, buffer );
136 /***********************************************************************
137 * OpenEventW (KERNEL32.@)
139 HANDLE WINAPI OpenEventW( DWORD access, BOOL inherit, LPCWSTR name )
141 HANDLE ret;
142 DWORD len = name ? strlenW(name) : 0;
143 if (len >= MAX_PATH)
145 SetLastError( ERROR_FILENAME_EXCED_RANGE );
146 return 0;
148 SERVER_START_REQ( open_event )
150 req->access = access;
151 req->inherit = inherit;
152 wine_server_add_data( req, name, len * sizeof(WCHAR) );
153 wine_server_call_err( req );
154 ret = reply->handle;
156 SERVER_END_REQ;
157 return ret;
161 /***********************************************************************
162 * EVENT_Operation
164 * Execute an event operation (set,reset,pulse).
166 static BOOL EVENT_Operation( HANDLE handle, enum event_op op )
168 BOOL ret;
169 SERVER_START_REQ( event_op )
171 req->handle = handle;
172 req->op = op;
173 ret = !wine_server_call_err( req );
175 SERVER_END_REQ;
176 return ret;
180 /***********************************************************************
181 * PulseEvent (KERNEL32.@)
183 BOOL WINAPI PulseEvent( HANDLE handle )
185 return EVENT_Operation( handle, PULSE_EVENT );
189 /***********************************************************************
190 * SetW32Event (KERNEL.458)
191 * SetEvent (KERNEL32.@)
193 BOOL WINAPI SetEvent( HANDLE handle )
195 return EVENT_Operation( handle, SET_EVENT );
199 /***********************************************************************
200 * ResetW32Event (KERNEL.459)
201 * ResetEvent (KERNEL32.@)
203 BOOL WINAPI ResetEvent( HANDLE handle )
205 return EVENT_Operation( handle, RESET_EVENT );
209 /***********************************************************************
210 * NOTE: The Win95 VWin32_Event routines given below are really low-level
211 * routines implemented directly by VWin32. The user-mode libraries
212 * implement Win32 synchronisation routines on top of these low-level
213 * primitives. We do it the other way around here :-)
216 /***********************************************************************
217 * VWin32_EventCreate (KERNEL.442)
219 HANDLE WINAPI VWin32_EventCreate(VOID)
221 HANDLE hEvent = CreateEventA( NULL, FALSE, 0, NULL );
222 return ConvertToGlobalHandle( hEvent );
225 /***********************************************************************
226 * VWin32_EventDestroy (KERNEL.443)
228 VOID WINAPI VWin32_EventDestroy(HANDLE event)
230 CloseHandle( event );
233 /***********************************************************************
234 * VWin32_EventWait (KERNEL.450)
236 VOID WINAPI VWin32_EventWait(HANDLE event)
238 DWORD mutex_count;
240 ReleaseThunkLock( &mutex_count );
241 WaitForSingleObject( event, INFINITE );
242 RestoreThunkLock( mutex_count );
245 /***********************************************************************
246 * VWin32_EventSet (KERNEL.451)
247 * KERNEL_479 (KERNEL.479)
249 VOID WINAPI VWin32_EventSet(HANDLE event)
251 SetEvent( event );
256 /***********************************************************************
257 * CreateMutexA (KERNEL32.@)
259 HANDLE WINAPI CreateMutexA( SECURITY_ATTRIBUTES *sa, BOOL owner, LPCSTR name )
261 WCHAR buffer[MAX_PATH];
263 if (!name) return CreateMutexW( sa, owner, NULL );
265 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
267 SetLastError( ERROR_FILENAME_EXCED_RANGE );
268 return 0;
270 return CreateMutexW( sa, owner, buffer );
274 /***********************************************************************
275 * CreateMutexW (KERNEL32.@)
277 HANDLE WINAPI CreateMutexW( SECURITY_ATTRIBUTES *sa, BOOL owner, LPCWSTR name )
279 HANDLE ret;
280 DWORD len = name ? strlenW(name) : 0;
281 if (len >= MAX_PATH)
283 SetLastError( ERROR_FILENAME_EXCED_RANGE );
284 return 0;
286 SERVER_START_REQ( create_mutex )
288 req->owned = owner;
289 req->inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
290 wine_server_add_data( req, name, len * sizeof(WCHAR) );
291 SetLastError(0);
292 wine_server_call_err( req );
293 ret = reply->handle;
295 SERVER_END_REQ;
296 return ret;
300 /***********************************************************************
301 * OpenMutexA (KERNEL32.@)
303 HANDLE WINAPI OpenMutexA( DWORD access, BOOL inherit, LPCSTR name )
305 WCHAR buffer[MAX_PATH];
307 if (!name) return OpenMutexW( access, inherit, NULL );
309 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
311 SetLastError( ERROR_FILENAME_EXCED_RANGE );
312 return 0;
314 return OpenMutexW( access, inherit, buffer );
318 /***********************************************************************
319 * OpenMutexW (KERNEL32.@)
321 HANDLE WINAPI OpenMutexW( DWORD access, BOOL inherit, LPCWSTR name )
323 HANDLE ret;
324 DWORD len = name ? strlenW(name) : 0;
325 if (len >= MAX_PATH)
327 SetLastError( ERROR_FILENAME_EXCED_RANGE );
328 return 0;
330 SERVER_START_REQ( open_mutex )
332 req->access = access;
333 req->inherit = inherit;
334 wine_server_add_data( req, name, len * sizeof(WCHAR) );
335 wine_server_call_err( req );
336 ret = reply->handle;
338 SERVER_END_REQ;
339 return ret;
343 /***********************************************************************
344 * ReleaseMutex (KERNEL32.@)
346 BOOL WINAPI ReleaseMutex( HANDLE handle )
348 BOOL ret;
349 SERVER_START_REQ( release_mutex )
351 req->handle = handle;
352 ret = !wine_server_call_err( req );
354 SERVER_END_REQ;
355 return ret;
360 * Semaphores
364 /***********************************************************************
365 * CreateSemaphoreA (KERNEL32.@)
367 HANDLE WINAPI CreateSemaphoreA( SECURITY_ATTRIBUTES *sa, LONG initial, LONG max, LPCSTR name )
369 WCHAR buffer[MAX_PATH];
371 if (!name) return CreateSemaphoreW( sa, initial, max, NULL );
373 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
375 SetLastError( ERROR_FILENAME_EXCED_RANGE );
376 return 0;
378 return CreateSemaphoreW( sa, initial, max, buffer );
382 /***********************************************************************
383 * CreateSemaphoreW (KERNEL32.@)
385 HANDLE WINAPI CreateSemaphoreW( SECURITY_ATTRIBUTES *sa, LONG initial,
386 LONG max, LPCWSTR name )
388 HANDLE ret;
389 DWORD len = name ? strlenW(name) : 0;
391 /* Check parameters */
393 if ((max <= 0) || (initial < 0) || (initial > max))
395 SetLastError( ERROR_INVALID_PARAMETER );
396 return 0;
398 if (len >= MAX_PATH)
400 SetLastError( ERROR_FILENAME_EXCED_RANGE );
401 return 0;
404 SERVER_START_REQ( create_semaphore )
406 req->initial = (unsigned int)initial;
407 req->max = (unsigned int)max;
408 req->inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
409 wine_server_add_data( req, name, len * sizeof(WCHAR) );
410 SetLastError(0);
411 wine_server_call_err( req );
412 ret = reply->handle;
414 SERVER_END_REQ;
415 return ret;
419 /***********************************************************************
420 * OpenSemaphoreA (KERNEL32.@)
422 HANDLE WINAPI OpenSemaphoreA( DWORD access, BOOL inherit, LPCSTR name )
424 WCHAR buffer[MAX_PATH];
426 if (!name) return OpenSemaphoreW( access, inherit, NULL );
428 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
430 SetLastError( ERROR_FILENAME_EXCED_RANGE );
431 return 0;
433 return OpenSemaphoreW( access, inherit, buffer );
437 /***********************************************************************
438 * OpenSemaphoreW (KERNEL32.@)
440 HANDLE WINAPI OpenSemaphoreW( DWORD access, BOOL inherit, LPCWSTR name )
442 HANDLE ret;
443 DWORD len = name ? strlenW(name) : 0;
444 if (len >= MAX_PATH)
446 SetLastError( ERROR_FILENAME_EXCED_RANGE );
447 return 0;
449 SERVER_START_REQ( open_semaphore )
451 req->access = access;
452 req->inherit = inherit;
453 wine_server_add_data( req, name, len * sizeof(WCHAR) );
454 wine_server_call_err( req );
455 ret = reply->handle;
457 SERVER_END_REQ;
458 return ret;
462 /***********************************************************************
463 * ReleaseSemaphore (KERNEL32.@)
465 BOOL WINAPI ReleaseSemaphore( HANDLE handle, LONG count, LONG *previous )
467 NTSTATUS status = NtReleaseSemaphore( handle, count, previous );
468 if (status) SetLastError( RtlNtStatusToDosError(status) );
469 return !status;
474 * Pipes
478 /***********************************************************************
479 * CreateNamedPipeA (KERNEL32.@)
481 HANDLE WINAPI CreateNamedPipeA( LPCSTR name, DWORD dwOpenMode,
482 DWORD dwPipeMode, DWORD nMaxInstances,
483 DWORD nOutBufferSize, DWORD nInBufferSize,
484 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES attr )
486 WCHAR buffer[MAX_PATH];
488 if (!name) return CreateNamedPipeW( NULL, dwOpenMode, dwPipeMode, nMaxInstances,
489 nOutBufferSize, nInBufferSize, nDefaultTimeOut, attr );
491 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
493 SetLastError( ERROR_FILENAME_EXCED_RANGE );
494 return 0;
496 return CreateNamedPipeW( buffer, dwOpenMode, dwPipeMode, nMaxInstances,
497 nOutBufferSize, nInBufferSize, nDefaultTimeOut, attr );
501 /***********************************************************************
502 * CreateNamedPipeW (KERNEL32.@)
504 HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
505 DWORD dwPipeMode, DWORD nMaxInstances,
506 DWORD nOutBufferSize, DWORD nInBufferSize,
507 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES attr )
509 HANDLE ret;
510 DWORD len;
511 static const WCHAR leadin[] = {'\\','\\','.','\\','P','I','P','E','\\'};
513 TRACE("(%s, %#08lx, %#08lx, %ld, %ld, %ld, %ld, %p)\n",
514 debugstr_w(name), dwOpenMode, dwPipeMode, nMaxInstances,
515 nOutBufferSize, nInBufferSize, nDefaultTimeOut, attr );
517 if (!name)
519 SetLastError( ERROR_PATH_NOT_FOUND );
520 return INVALID_HANDLE_VALUE;
522 len = strlenW(name);
523 if (len >= MAX_PATH)
525 SetLastError( ERROR_FILENAME_EXCED_RANGE );
526 return INVALID_HANDLE_VALUE;
528 if (strncmpiW(name, leadin, sizeof(leadin)/sizeof(leadin[0])))
530 SetLastError( ERROR_INVALID_NAME );
531 return INVALID_HANDLE_VALUE;
533 SERVER_START_REQ( create_named_pipe )
535 req->openmode = dwOpenMode;
536 req->pipemode = dwPipeMode;
537 req->maxinstances = nMaxInstances;
538 req->outsize = nOutBufferSize;
539 req->insize = nInBufferSize;
540 req->timeout = nDefaultTimeOut;
541 wine_server_add_data( req, name, len * sizeof(WCHAR) );
542 SetLastError(0);
543 wine_server_call_err( req );
544 ret = reply->handle;
546 SERVER_END_REQ;
547 return ret;
551 /***********************************************************************
552 * PeekNamedPipe (KERNEL32.@)
554 BOOL WINAPI PeekNamedPipe( HANDLE hPipe, LPVOID lpvBuffer, DWORD cbBuffer,
555 LPDWORD lpcbRead, LPDWORD lpcbAvail, LPDWORD lpcbMessage )
557 #ifdef FIONREAD
558 int avail=0,fd;
560 fd = FILE_GetUnixHandle(hPipe, GENERIC_READ);
561 if (fd == -1) return FALSE;
563 if (ioctl(fd,FIONREAD, &avail ) != 0)
565 TRACE("FIONREAD failed reason: %s\n",strerror(errno));
566 close(fd);
567 return FALSE;
569 if (!avail) /* check for closed pipe */
571 struct pollfd pollfd;
572 pollfd.fd = fd;
573 pollfd.events = POLLIN;
574 pollfd.revents = 0;
575 switch (poll( &pollfd, 1, 0 ))
577 case 0:
578 break;
579 case 1: /* got something */
580 if (!(pollfd.revents & (POLLHUP | POLLERR))) break;
581 TRACE("POLLHUP | POLLERR\n");
582 /* fall through */
583 case -1:
584 close(fd);
585 SetLastError(ERROR_BROKEN_PIPE);
586 return FALSE;
589 close(fd);
590 TRACE(" 0x%08x bytes available\n", avail );
591 if (!lpvBuffer && lpcbAvail)
593 *lpcbAvail= avail;
594 return TRUE;
596 #endif /* defined(FIONREAD) */
598 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
599 FIXME("function not implemented\n");
600 return FALSE;
603 /***********************************************************************
604 * SYNC_CompletePipeOverlapped (Internal)
606 static void SYNC_CompletePipeOverlapped (LPOVERLAPPED overlapped, DWORD result)
608 TRACE("for %p result %08lx\n",overlapped,result);
609 if(!overlapped)
610 return;
611 overlapped->Internal = result;
612 SetEvent(overlapped->hEvent);
616 /***********************************************************************
617 * WaitNamedPipeA (KERNEL32.@)
619 BOOL WINAPI WaitNamedPipeA (LPCSTR name, DWORD nTimeOut)
621 WCHAR buffer[MAX_PATH];
623 if (!name) return WaitNamedPipeW( NULL, nTimeOut );
625 if (!MultiByteToWideChar( CP_ACP, 0, name, -1, buffer, MAX_PATH ))
627 SetLastError( ERROR_FILENAME_EXCED_RANGE );
628 return 0;
630 return WaitNamedPipeW( buffer, nTimeOut );
634 /***********************************************************************
635 * WaitNamedPipeW (KERNEL32.@)
637 BOOL WINAPI WaitNamedPipeW (LPCWSTR name, DWORD nTimeOut)
639 DWORD len = name ? strlenW(name) : 0;
640 BOOL ret;
641 OVERLAPPED ov;
643 if (len >= MAX_PATH)
645 SetLastError( ERROR_FILENAME_EXCED_RANGE );
646 return FALSE;
649 TRACE("%s 0x%08lx\n",debugstr_w(name),nTimeOut);
651 memset(&ov,0,sizeof ov);
652 ov.hEvent = CreateEventA( NULL, 0, 0, NULL );
653 if (!ov.hEvent)
654 return FALSE;
656 SERVER_START_REQ( wait_named_pipe )
658 req->timeout = nTimeOut;
659 req->overlapped = &ov;
660 req->func = SYNC_CompletePipeOverlapped;
661 wine_server_add_data( req, name, len * sizeof(WCHAR) );
662 ret = !wine_server_call_err( req );
664 SERVER_END_REQ;
666 if(ret)
668 if (WAIT_OBJECT_0==WaitForSingleObject(ov.hEvent,INFINITE))
670 SetLastError(ov.Internal);
671 ret = (ov.Internal==STATUS_SUCCESS);
674 CloseHandle(ov.hEvent);
675 return ret;
679 /***********************************************************************
680 * SYNC_ConnectNamedPipe (Internal)
682 static BOOL SYNC_ConnectNamedPipe(HANDLE hPipe, LPOVERLAPPED overlapped)
684 BOOL ret;
686 if(!overlapped)
687 return FALSE;
689 overlapped->Internal = STATUS_PENDING;
691 SERVER_START_REQ( connect_named_pipe )
693 req->handle = hPipe;
694 req->overlapped = overlapped;
695 req->func = SYNC_CompletePipeOverlapped;
696 ret = !wine_server_call_err( req );
698 SERVER_END_REQ;
700 return ret;
703 /***********************************************************************
704 * ConnectNamedPipe (KERNEL32.@)
706 BOOL WINAPI ConnectNamedPipe(HANDLE hPipe, LPOVERLAPPED overlapped)
708 OVERLAPPED ov;
709 BOOL ret;
711 TRACE("(%p,%p)\n",hPipe, overlapped);
713 if(overlapped)
714 return SYNC_ConnectNamedPipe(hPipe,overlapped);
716 memset(&ov,0,sizeof ov);
717 ov.hEvent = CreateEventA(NULL,0,0,NULL);
718 if (!ov.hEvent)
719 return FALSE;
721 ret=SYNC_ConnectNamedPipe(hPipe, &ov);
722 if(ret)
724 if (WAIT_OBJECT_0==WaitForSingleObject(ov.hEvent,INFINITE))
726 SetLastError(ov.Internal);
727 ret = (ov.Internal==STATUS_SUCCESS);
731 CloseHandle(ov.hEvent);
733 return ret;
736 /***********************************************************************
737 * DisconnectNamedPipe (KERNEL32.@)
739 BOOL WINAPI DisconnectNamedPipe(HANDLE hPipe)
741 BOOL ret;
743 TRACE("(%p)\n",hPipe);
745 SERVER_START_REQ( disconnect_named_pipe )
747 req->handle = hPipe;
748 ret = !wine_server_call_err( req );
750 SERVER_END_REQ;
752 return ret;
755 /***********************************************************************
756 * TransactNamedPipe (KERNEL32.@)
758 BOOL WINAPI TransactNamedPipe(
759 HANDLE hPipe, LPVOID lpInput, DWORD dwInputSize, LPVOID lpOutput,
760 DWORD dwOutputSize, LPDWORD lpBytesRead, LPOVERLAPPED lpOverlapped)
762 FIXME("%p %p %ld %p %ld %p %p\n",
763 hPipe, lpInput, dwInputSize, lpOutput,
764 dwOutputSize, lpBytesRead, lpOverlapped);
765 if(lpBytesRead)
766 *lpBytesRead=0;
767 return FALSE;
770 /***********************************************************************
771 * GetNamedPipeInfo (KERNEL32.@)
773 BOOL WINAPI GetNamedPipeInfo(
774 HANDLE hNamedPipe, LPDWORD lpFlags, LPDWORD lpOutputBufferSize,
775 LPDWORD lpInputBufferSize, LPDWORD lpMaxInstances)
777 BOOL ret;
779 TRACE("%p %p %p %p %p\n", hNamedPipe, lpFlags,
780 lpOutputBufferSize, lpInputBufferSize, lpMaxInstances);
782 SERVER_START_REQ( get_named_pipe_info )
784 req->handle = hNamedPipe;
785 ret = !wine_server_call_err( req );
786 if(lpFlags) *lpFlags = reply->flags;
787 if(lpOutputBufferSize) *lpOutputBufferSize = reply->outsize;
788 if(lpInputBufferSize) *lpInputBufferSize = reply->outsize;
789 if(lpMaxInstances) *lpMaxInstances = reply->maxinstances;
791 SERVER_END_REQ;
793 return ret;
796 /***********************************************************************
797 * GetNamedPipeHandleStateA (KERNEL32.@)
799 BOOL WINAPI GetNamedPipeHandleStateA(
800 HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances,
801 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
802 LPSTR lpUsername, DWORD nUsernameMaxSize)
804 FIXME("%p %p %p %p %p %p %ld\n",
805 hNamedPipe, lpState, lpCurInstances,
806 lpMaxCollectionCount, lpCollectDataTimeout,
807 lpUsername, nUsernameMaxSize);
809 return FALSE;
812 /***********************************************************************
813 * GetNamedPipeHandleStateW (KERNEL32.@)
815 BOOL WINAPI GetNamedPipeHandleStateW(
816 HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances,
817 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
818 LPWSTR lpUsername, DWORD nUsernameMaxSize)
820 FIXME("%p %p %p %p %p %p %ld\n",
821 hNamedPipe, lpState, lpCurInstances,
822 lpMaxCollectionCount, lpCollectDataTimeout,
823 lpUsername, nUsernameMaxSize);
825 return FALSE;
828 /***********************************************************************
829 * SetNamedPipeHandleState (KERNEL32.@)
831 BOOL WINAPI SetNamedPipeHandleState(
832 HANDLE hNamedPipe, LPDWORD lpMode, LPDWORD lpMaxCollectionCount,
833 LPDWORD lpCollectDataTimeout)
835 FIXME("%p %p %p %p\n",
836 hNamedPipe, lpMode, lpMaxCollectionCount, lpCollectDataTimeout);
837 return FALSE;
840 /***********************************************************************
841 * CallNamedPipeA (KERNEL32.@)
843 BOOL WINAPI CallNamedPipeA(
844 LPCSTR lpNamedPipeName, LPVOID lpInput, DWORD lpInputSize,
845 LPVOID lpOutput, DWORD lpOutputSize,
846 LPDWORD lpBytesRead, DWORD nTimeout)
848 FIXME("%s %p %ld %p %ld %p %ld\n",
849 debugstr_a(lpNamedPipeName), lpInput, lpInputSize,
850 lpOutput, lpOutputSize, lpBytesRead, nTimeout);
851 return FALSE;
854 /***********************************************************************
855 * CallNamedPipeW (KERNEL32.@)
857 BOOL WINAPI CallNamedPipeW(
858 LPCWSTR lpNamedPipeName, LPVOID lpInput, DWORD lpInputSize,
859 LPVOID lpOutput, DWORD lpOutputSize,
860 LPDWORD lpBytesRead, DWORD nTimeout)
862 FIXME("%s %p %ld %p %ld %p %ld\n",
863 debugstr_w(lpNamedPipeName), lpInput, lpInputSize,
864 lpOutput, lpOutputSize, lpBytesRead, nTimeout);
865 return FALSE;