Changed the spec definition of *s*printf from *str to ptr, since that
[wine.git] / scheduler / pipe.c
blobfd502f9525db4f80c01fa0c667044a3b12901c62
1 /*
2 * Win32 pipes
4 * Copyright 1998 Alexandre Julliard
5 */
7 #include <assert.h>
8 #include "winerror.h"
9 #include "winbase.h"
10 #include "server.h"
13 /***********************************************************************
14 * CreatePipe (KERNEL32.170)
16 BOOL WINAPI CreatePipe( PHANDLE hReadPipe, PHANDLE hWritePipe,
17 LPSECURITY_ATTRIBUTES sa, DWORD size )
19 BOOL ret;
20 SERVER_START_REQ( create_pipe )
22 req->inherit = (sa && (sa->nLength>=sizeof(*sa)) && sa->bInheritHandle);
23 if ((ret = !SERVER_CALL_ERR()))
25 *hReadPipe = req->handle_read;
26 *hWritePipe = req->handle_write;
29 SERVER_END_REQ;
30 return ret;