pszName (PSZ) - input

      A pointer to the ASCIIZ name of the pipe to be opened.

    msec (ULONG) - input

      The maximum time, in milliseconds, to wait for a named-pipe instance to become available.

      When a value of 0 is specified, DosWaitNPipe uses the value of msec that was specified when the pipe was created with DosCreateNPipe. When a value of -1 is specified, DosWaitNPipe waits indefinitely.

    ulrc (APIRET) - returns

      Return Code.

      DosWaitNPipe returns one of the following values:

    • NO_ERROR 2
        ERROR_FILE_NOT_FOUND
      95
        ERROR_INTERRUPT
      121
        ERROR_SEM_TIMEOUT
      230
        ERROR_BAD_PIPE
      231
        ERROR_PIPE_BUSY
      For a full list of error codes, see Errors.


    [Back] [Next]