From 1f7c81eb368a8c5be78cef6f64e7b2010e0cad0f Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 17 Jan 2006 13:13:01 +0100 Subject: [PATCH] kernel32: Create a stub implementation for PostQueuedCompletionStatus. --- dlls/kernel/kernel32.spec | 2 +- dlls/kernel/sync.c | 8 ++++++++ include/winbase.h | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 65976a1292f..0454111a157 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -844,7 +844,7 @@ @ stdcall PeekConsoleInputA(ptr ptr long ptr) @ stdcall PeekConsoleInputW(ptr ptr long ptr) @ stdcall PeekNamedPipe(long ptr long ptr ptr ptr) -@ stub PostQueuedCompletionStatus +@ stdcall PostQueuedCompletionStatus(long long ptr ptr) @ stdcall PrepareTape(ptr long long) @ stub PrivCopyFileExW @ stub PrivMoveFileIdentityW diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index ef61cf06613..5a2535e7b64 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -1852,6 +1852,14 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf return FALSE; } +BOOL WINAPI PostQueuedCompletionStatus( HANDLE CompletionPort, DWORD dwNumberOfBytes, + ULONG_PTR dwCompletionKey, LPOVERLAPPED lpOverlapped) +{ + FIXME("%p %ld %08lx %p\n", CompletionPort, dwNumberOfBytes, dwCompletionKey, lpOverlapped ); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + /****************************************************************************** * CreateJobObjectW (KERNEL32.@) */ diff --git a/include/winbase.h b/include/winbase.h index 7b193d49924..650cf965650 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1810,6 +1810,7 @@ VOID WINAPI OutputDebugStringA(LPCSTR); VOID WINAPI OutputDebugStringW(LPCWSTR); #define OutputDebugString WINELIB_NAME_AW(OutputDebugString) BOOL WINAPI PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD); +BOOL WINAPI PostQueuedCompletionStatus(HANDLE,DWORD,ULONG_PTR,LPOVERLAPPED); DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL); BOOL WINAPI ProcessIdToSessionId(DWORD,DWORD*); BOOL WINAPI PrivilegeCheck(HANDLE,PPRIVILEGE_SET,LPBOOL);