4 * Copyright 1998 Alexandre Julliard
10 #include "wine/server.h"
13 /***********************************************************************
14 * CreatePipe (KERNEL32.@)
16 BOOL WINAPI CreatePipe( PHANDLE hReadPipe, PHANDLE hWritePipe,
17 LPSECURITY_ATTRIBUTES sa, DWORD size )
20 SERVER_START_REQ( create_pipe )
22 req->inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
23 if ((ret = !wine_server_call_err( req )))
25 *hReadPipe = reply->handle_read;
26 *hWritePipe = reply->handle_write;