fsOpenFlags (ULONG) - input

      The action to be taken depending on whether the file exists or does not exist.

      This parameter contains the following bit fields.:

      Bits

        Description
      31-8
        Reserved, must be 0.
      7-4
        The following flags apply if the file does not exist:

        0000

          OPEN_ACTION_FAIL_IF_NEW
          Open an existing file; fail if the file does not exist.
        0001
          OPEN_ACTION_CREATE_IF_NEW
          Create the file if the file does not exist.
        3-0
          The following flags apply if the file does not exist:

          0000

            OPEN_ACTION_FAIL_IF_EXISTS
            Open the file; fail if the file already exists.
          0001
            OPEN_ACTION_OPEN_IF_EXISTS
            Open the file if it already exists.
          0010
            OPEN_ACTION_REPLACE_IF_EXISTS
            Replace the file if it already exists.


          [Back] [Next]