pFlag (PULONG) - output

      A pointer to a ULONG containing a set of attribute flags describing the type of allocation and access protection for the specified range of pages.

      Allocation Type

      PAG_COMMIT (0x00000010)

        Pages within the specified region are committed.
      PAG_SHARED (0x00002000)
        Pages within the specified region are in a shared memory object. Otherwise, the pages are in a private memory object.
      PAG_FREE (0x00004000)
        Pages within the specified region are free.
      PAG_BASE (0x00010000)
        First page in the specified region is the first page in an allocated memory object.
      Access Protection

      PAG_READ (0x00000001)

        Read access to the committed range of pages is allowed.
      PAG_WRITE (0x00000002)
        write access to the committed range of pages is allowed.
      PAG_EXECUTE (0x00000004)
        Execute access to the committed range of pages is allowed.
      PAG_GUARD (0x00000008)
        Access to the committed range of pages causes a "guard page entered" condition to be raised in the subject process.


      [Back] [Next]