Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de writes:
wine/server/pipe.c, wine/server/named_pipe.c: xxx_get_info Return the number of bytes available for reading wine/dlls/kernel/sync.c: PeekNamedPipe Use get_file_info to get the number of bytes available for reading
I don't think it's a good idea to overload get_file_info that way. You should retrieve the pipe file descriptor and do the FIONREAD on the client side. We will need the file descriptor anyway to implement the full peek functionality.