pb (PVOID) - input

      The base address of the range of pages to be queried.

    pcb (PULONG) - in/out

      A pointer to a ULONG containing the size of the range of pages.

      Input

        This parameter points to a variable that contains the size, in bytes, of the range of pages to be queried. The initial value of the variable is rounded to include all pages addressed by the requested base address and size.
      Output
        This parameter points to a variable that contains the actual size, in bytes, of the queried range of pages.

      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.

        ulrc (APIRET) - returns

          Return Code.

          DosQueryMem returns one of the following values:

        • NO_ERROR 87
            ERROR_INVALID_PARAMETER
          95
            ERROR_INTERRUPT
          487
            ERROR_INVALID_ADDRESS
          For a full list of error codes, see Errors.


        [Back] [Next]