[PATCH] Implement BindIoCompletionCallback
Robert Shearman
rob at codeweavers.com
Tue Dec 18 14:38:26 CST 2007
Andrey Turkin wrote:
> /******************************************************************************
> * BindIoCompletionCallback (KERNEL32.@)
> */
> +extern NTSTATUS WINAPI RtlSetIoCompletionCallback(HANDLE,LPOVERLAPPED_COMPLETION_ROUTINE,ULONG);
>
This should go in winternl.h.
> BOOL WINAPI BindIoCompletionCallback( HANDLE FileHandle, LPOVERLAPPED_COMPLETION_ROUTINE Function, ULONG Flags)
> {
> - FIXME("%p, %p, %d, stub!\n", FileHandle, Function, Flags);
> - SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
> + NTSTATUS status;
> +
> + TRACE("(%p, %p, %d)\n", FileHandle, Function, Flags);
> +
> + status = RtlSetIoCompletionCallback( FileHandle, Function, Flags );
> + if (status == STATUS_SUCCESS) return TRUE;
> + SetLastError( RtlNtStatusToDosError(status) );
> return FALSE;
> }
>
--
Rob Shearman
More information about the wine-devel
mailing list