diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index e8464a3ebc7..d56851bd31a 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -567,7 +567,7 @@ import ntdll.dll 549 stdcall OutputDebugStringW(wstr) OutputDebugStringW 550 stdcall PeekConsoleInputA(ptr ptr long ptr) PeekConsoleInputA 551 stdcall PeekConsoleInputW(ptr ptr long ptr) PeekConsoleInputW -552 stub PeekNamedPipe +552 stdcall PeekNamedPipe(long ptr long ptr ptr ptr) PeekNamedPipe 553 stub PostQueuedCompletionStatus 554 stdcall PrepareTape(ptr long long) PrepareTape 555 stdcall Process32First (ptr ptr) Process32First diff --git a/win32/newfns.c b/win32/newfns.c index 9dd357989d5..57af990e637 100644 --- a/win32/newfns.c +++ b/win32/newfns.c @@ -88,6 +88,21 @@ HANDLE WINAPI CreateNamedPipeW (LPCWSTR lpName, DWORD dwOpenMode, return INVALID_HANDLE_VALUE; } +/*********************************************************************** + * PeekNamedPipe (KERNEL32.552) + */ +BOOL WINAPI PeekNamedPipe (HANDLE hPipe, + LPVOID lpvBuffer, DWORD cbBuffer, + LPDWORD lpcbRead, LPDWORD lpcbAvail, LPDWORD lpcbMessage) +{ + FIXME("(%08x, %p, %08lx, %p, %p, %p): stub\n", + hPipe, lpvBuffer, cbBuffer, lpcbRead, lpcbAvail, lpcbMessage); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + + /*********************************************************************** * GetSystemPowerStatus (KERNEL32.621) */