[Box Backup-dev] Reviewing code -- help!

Chris Wilson boxbackup-dev at fluffy.co.uk
Sun Dec 11 01:06:18 GMT 2005


Hi Charles,

> lpNumberOfBytesWritten
>    [out] Pointer to the variable that receives the number of bytes
> written. WriteFile sets this value to zero before doing any work or
> error checking.

Thanks, I'm a dunce (again). Fixed in 07-win32-fixes.

> How it behaves with partial sends depends on the mode the pipe is in. I
> strongly suggest using message mode; as long as your sends are within
> the buffer size, you can be sure both ends are in the same state.

The pipe is created using PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | 
PIPE_WAIT, is that enough? Do I need to do anything on the client side, 
that opens the pipe with CreateFileW?

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |




More information about the Boxbackup-dev mailing list