#define    NPIPE_NAME   "\\PIPE\\SRVPIPE"                                      /* Pipe name              */

PTRANS     Transaction;                                                        /* Transaction buffer ptr */
ULONG      Bytes;                                                              /* Bytes read/written     */
ULONG      Rc;                                                                 /* Return code            */

Rc = DosWaitNPipe (NPIPE_NAME,                                                 /* Wait on named pipe     */
                   NP_WAIT_INDEFINITELY);                                      /* Wait indefinitely      */

Rc = DosCallNPipe (NPIPE_NAME,                                                 /* Pipe name              */
                   Transaction->Request,                                       /* Request buffer ptr     */
                   sizeof (REQUEST),                                           /* Size of buffer         */
                   Transaction->Reply,                                         /* Reply buffer ptr       */
                   sizeof (REPLY),                                             /* Size of buffer         */
                   &Bytes,                                                     /* No. of bytes read      */
                   TC_TIMEOUT);                                                /* Timeout period         */
