flag (ULONG) - input

      A set of flags specifying commitment or decommitment, and desired access protection, for the specified range of pages.

      Commit Type

      PAG_COMMIT bit (0x00000010)

        The specified range of pages is to be committed.
      PAG_DECOMMIT bit (0x00000020)
        The specified range of pages is to be decommitted.
      Note: Only committed pages in private memory objects can be decommitted. A committed page in a shared memory object cannot be decommitted. If neither is specified, no change in commitment is made.

      Desired Access Protection

      PAG_EXECUTE bit (0x00000004)

        Execute access to the committed range of pages is desired.
      PAG_READ bit (0x00000001)
        Read access to the committed range of pages is desired.
      PAG_WRITE bit (0x00000002)
        Write access to the committed range of pages is desired.
      PAG_GUARD bit (0x00000008)
        Access to the committed range of pages causes a "guard page entered" condition to be raised in the subject process.
      PAG_DEFAULT bit (0x00000400)
        The access protection assigned to the committed range of pages is the access protection specified when the object was allocated in the address space of the requesting process.
      If the PAG_DECOMMIT bit is not set, then the PAG_DEFAULT bit or at least one of the bits PAG_READ, PAG_WRITE, or PAG_EXECUTE must be specified.

      All other bits must be clear.


    [Back] [Next]