ulPageId (ULONG)

      Page ID or 0.

      Page identifier from which to start the query, or 0. If this parameter is set to 0, the query begins with the first page.

    usQueryEnd (USHORT)

      Query end attribute.

      Attribute that ends the page count query.

      BKA_MAJOR

        Query the number of pages between the page ID specified in the ulPageId parameter and the next page that has the BKA_MAJOR attribute. The page that has the BKA_MAJOR attribute is not included in the page count.
      BKA_MINOR
        Query the number of pages between the page ID specified in the ulPageId parameter and the next page that has the BKA_MINOR attribute. The page that has the BKA_MINOR attribute is not included in the page count.
      BKA_END
        Query the number of pages between the page ID specified in the ulPageId parameter and the last page. When this attribute is specified, the page count includes the last page plus the notebook's back cover.

      pageCount (SHORT)

        Number of pages.

        Number of pages in the notebook.

        BOOKERR_INVALID_PARAMETERS

          An invalid page ID was specified for the ulPageId parameter.
        Other
          Number of pages for the specified range. If the notebook is empty or no pages are found in the range, this value is 0.


        [Back] [Next]