VOID
PopGetNextRange(
  IN  PPOP_HIBER_CONTEXT HiberContext,
  OUT PPFN_NUMBER StartPage,
  OUT PPFN_NUMBER EndPage,
  OUT PVOID *CloneVa
  );

Routine Description:

    Enumerates the next range to be written to the hibernation file

Arguments:

    HiberContext - Supplies the hibernation context.

    StartPage - Returns the starting physical page to be written.

    EndPage - Returns the ending physical page (non-inclusive) to be written

    CloneVa - If the range is to be cloned, returns the cloned virtual address
              If the range is not cloned, returns NULL

Return Value:

    NTSTATUS