File extents in NTFS without opening a file handle

Greetings all,

I wanted to find out the extents of a file in NTFS. I could use
the FSCTL_GET_RETRIEVAL_POINTERS, but that requires a handle to the file I
want to seek.

Is there another way of getting the extents *without* opening the file
handle, opening the volume handle instead?

Please note, I can do this by writing an NTFS parser, but I want to use FS
APIs and IOCTLs as much as possible. I will have the FRN of the file I wish
to get the extents for.

thanks

  • amitr0