Re: KERNEL32: implement CallNamedPipe
31 Aug
2004
31 Aug
'04
1:09 p.m.
"Mike McCormack" <mike(a)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.
7774
Age (days ago)
7774
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov