openmode (ULONG) - input

      A set of flags defining the mode in which to open the pipe.

      This parameter contains the following bit fields:

      Bit

        Description
      31-16
        Reserved.
      15
        Reserved and must be 0.
      14
        Write-through bit. Possible values are shown in the following list:

      • NP_WRITEBEHIND (0x0000)
        Write-behind to remote pipes is allowed.

      • NP_NOWRITEBEHIND (0x4000)
        Write-behind to remote pipes is not allowed.

        This bit is meaningful only for a remote pipe. Occasionally, data written to a remote pipe is buffered locally and then sent across the network to the pipe at a later time. Setting the write-through bit ensures that data is sent to the remote pipe as soon as it is written.

      13-8
        Reserved.
      7
        Inheritance flag. Possible values are shown in the following list:

      • NP_INHERIT (0x0000)
        The pipe handle is inherited by a child process.

      • NP_NOINHERIT (0x0080)
        The pipe handle is private to the current process and cannot be inherited.

        This bit is not inherited by child processes.

      6-3
        Reserved and must be 0.
      2-0
        Access mode. The pipe access is defined as shown in the following list:

        000

          NP_ACCESS_INBOUND (0x0000)
          Inbound pipe (client to server).
        001
          NP_ACCESS_OUTBOUND (0x0001)
          Outbound pipe (server to client).
        010
          NP_ACCESS_DUPLEX (0x0002)
          Duplex pipe (server to and from client).
        Any other value is invalid.


      [Back] [Next]