Creates a named pipe.
#define INCL_DOSNMPIPES #include <os2.h> PSZ pszName; /* The ASCIIZ name of the pipe to be opened. */ PHPIPE pHpipe; /* A pointer to the variable in which the system returns the handle of the pipe that is created. */ ULONG openmode; /* A set of flags defining the mode in which to open the pipe. */ ULONG pipemode; /* A set of flags defining the mode of the pipe. */ ULONG cbOutbuf; /* The number of bytes to allocate for the outbound (server to client) buffer. */ ULONG cbInbuf; /* The number of bytes to allocate for the inbound (client to server) buffer. */ ULONG msec; /* The maximum time, in milliseconds, to wait for a named-pipe instance to become available. */ APIRET ulrc; /* Return Code. */ ulrc = DosCreateNPipe(pszName, pHpipe, openmode, pipemode, cbOutbuf, cbInbuf, msec);