From 45459a55d461e4b09713d637b09d71f469f47d22 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Fri, 18 Dec 1998 13:46:39 +0000 Subject: [PATCH] Stubs for WaitNamedPipe[A|W]. --- include/winerror.h | 4 ++++ relay32/kernel32.spec | 4 ++-- win32/kernel32.c | 18 ++++++++++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/include/winerror.h b/include/winerror.h index 90a593cecbc..a70d17eb92e 100644 --- a/include/winerror.h +++ b/include/winerror.h @@ -109,6 +109,10 @@ extern int WIN32_LastError; #define ERROR_BAD_EXE_FORMAT 193 #define ERROR_FILENAME_EXCED_RANGE 206 #define ERROR_META_EXPANSION_TOO_LONG 208 +#define ERROR_BAD_PIPE 230 +#define ERROR_PIPE_BUSY 231 +#define ERROR_NO_DATA 232 +#define ERROR_PIPE_NOT_CONNECTED 233 #define ERROR_MORE_DATA 234 #define ERROR_NO_MORE_ITEMS 259 #define ERROR_DIRECTORY 267 diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index bf27de17e31..348bc5a60ab 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -741,8 +741,8 @@ init MAIN_KernelInit 722 stdcall WaitForMultipleObjectsEx(long ptr long long long) WaitForMultipleObjectsEx 723 stdcall WaitForSingleObject(long long) WaitForSingleObject 724 stdcall WaitForSingleObjectEx(long long long) WaitForSingleObjectEx -725 stub WaitNamedPipeA -726 stub WaitNamedPipeW +725 stdcall WaitNamedPipeA (str long) WaitNamedPipe32A +726 stdcall WaitNamedPipeW (wstr long) WaitNamedPipe32W 727 stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr) WideCharToMultiByte 728 stdcall WinExec(str long) WinExec32 729 stdcall WriteConsoleA(long ptr long ptr ptr) WriteConsole32A diff --git a/win32/kernel32.c b/win32/kernel32.c index 5faf0d34c79..80a785b76ce 100644 --- a/win32/kernel32.c +++ b/win32/kernel32.c @@ -1138,5 +1138,19 @@ BOOL32 WINAPI UpdateResource32W( } - - +/*********************************************************************** + * WaitNamedPipe32A [KERNEL32.725] + */ +BOOL32 WINAPI WaitNamedPipe32A (LPCSTR lpNamedPipeName, DWORD nTimeOut) +{ FIXME (win32,"%s 0x%08lx\n",lpNamedPipeName,nTimeOut); + SetLastError(ERROR_PIPE_NOT_CONNECTED); + return FALSE; +} +/*********************************************************************** + * WaitNamedPipe32W [KERNEL32.726] + */ +BOOL32 WINAPI WaitNamedPipe32W (LPCWSTR lpNamedPipeName, DWORD nTimeOut) +{ FIXME (win32,"%s 0x%08lx\n",debugstr_w(lpNamedPipeName),nTimeOut); + SetLastError(ERROR_PIPE_NOT_CONNECTED); + return FALSE; +}