4 * Copyright 1998 Alexandre Julliard
10 #include "server/request.h"
14 /***********************************************************************
15 * CreatePipe (KERNEL32.170)
17 BOOL WINAPI CreatePipe( PHANDLE hReadPipe, PHANDLE hWritePipe,
18 LPSECURITY_ATTRIBUTES sa, DWORD size )
20 struct create_pipe_request req;
21 struct create_pipe_reply reply;
24 req.inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
25 CLIENT_SendRequest( REQ_CREATE_PIPE, -1, 1, &req, sizeof(req) );
26 if (CLIENT_WaitReply( &len, NULL, 1, &reply, sizeof(reply) ) != ERROR_SUCCESS)
28 *hReadPipe = reply.handle_read;
29 *hWritePipe = reply.handle_write;