hpipe (HPIPE) - input

      The named-pipe handle to query.

      (The server handle is returned by DosCreateNPipe; the client handle is returned by DosOpen).

    infolevel (ULONG) - input

      Level of the required pipe information.

      Only levels 1 and 2 are supported.

    pBuf (PVOID) - output

      A pointer to the storage area in which the requested level of named-pipe information is returned.

      Level 1 File Information

        Information about the pipe itself is returned in the form of a PIPEINFO structure.
      Level 2 File Information
        For LAN Manager, LAN Server, and other LAN-based named pipe handles, the buffer will contain the unique 4-byte identifier of the client. Otherwise, this field returns NULL.

      cbBuf (ULONG) - input

        The length, in bytes, of pBuf.

      ulrc (APIRET) - returns

        Return Code.

        DosQueryNPipeInfo returns one of the following values:

      • NO_ERROR 111
          ERROR_BUFFER_OVERFLOW
        124
          ERROR_INVALID_LEVEL
        230
          ERROR_BAD_PIPE
        For a full list of error codes, see Errors.


      [Back] [Next]