[Box Backup-dev] Reviewing code -- help!
Charles Lecklider
boxbackup-dev@fluffy.co.uk
Sun, 11 Dec 2005 18:51:47 +0000
Chris Wilson wrote:
> The pipe is created using PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE |
> PIPE_WAIT, is that enough?
No :-)
> Do I need to do anything on the client side, that opens the pipe with
CreateFileW?
Yes - have a look at SetNamedPipeHandleState. A pipe client always
starts in byte mode.
Also, you need to think carefully about having a NULL SA on the pipe;
generally, this is a potential security problem.
-C