[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: KERNEL32: implement CallNamedPipe
From: "Dmitry Timoshkov" <dmitry () baikal ! ru>
Date: 2004-08-31 13:09:09
Message-ID: 003301c48f5b$d50113b0$c9823bd5 () dmitry
[Download RAW message or body]
"Mike McCormack" <mike@codeweavers.com> wrote:
> + r = WaitNamedPipeW( lpNamedPipeName, nTimeout );
> + if( !r )
> + return r;
win2k kernel32 does not do WaitNamedPipeW.
> + handle = CreateFileW( lpNamedPipeName, GENERIC_READ|GENERIC_WRITE,
> + 0, NULL, OPEN_EXISTING, 0, NULL );
> + if( !handle )
> + return FALSE;
CreateFileW returns INVALID_HANDLE_VALUE on failure, not 0.
> + r = WriteFile( handle, lpOutput, dwOutputSize, &count, NULL );
> + if( r )
> + r = ReadFile( handle, lpInput, dwInputSize, lpBytesRead, NULL );
win2k kernel32 calls SetNamedPipeHandleState and TransactNamedPipe (not
implemented in Wine) here.
> + CloseHandle( handle );
> +
> + return r;
> }
--
Dmitry.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic