Makes a procedure call to a duplex message pipe.
#define INCL_DOSNMPIPES
#include <os2.h>
PSZ pszName; /* The ASCIIZ name of the pipe to be opened. */
PVOID pInbuf; /* A pointer to the buffer that is to be written to the pipe. */
ULONG cbIn; /* The number of bytes to be written. */
PVOID pOutbuf; /* A pointer to the buffer for returned data. */
ULONG cbOut; /* The maximum size, in bytes, of returned data. */
PULONG pcbActual; /* A pointer to the ULONG in which the number of bytes actually read is returned. */
ULONG msec; /* The maximum time, in milliseconds, to wait for a pipe instance to become available. */
APIRET ulrc; /* Return Code. */
ulrc = DosCallNPipe(pszName, pInbuf, cbIn,
pOutbuf, cbOut, pcbActual, msec);