Q:

How to get the LBA ranges, given a file?

Given a file, how can I get the LBA ranges corresponding to the file?
Can FSCTL_GET_RETRIEVAL_POINTERS do the job?

A:

Yes, it will help you.  Note that if you're trying to get down lower, you might need a littlemore; the file system thinks in clusters, for example, while you may not be thinking in clusters).

