Pulling out code for getting a pointer to the PageIndexHeader