How can a Win32 application find all holes in sparse files? UNIX/POSIX/Linux/FreeBSD have lseek(..., SEEK_HOLE, ...) and lseek(..., SEEK_DATA, ...), but how can I do that with pure Win32 API?
We are looking for a code example in ISO C which demonstrates how to get a listing of all data sections and all holes in file, e.g.
file xyz.data
data from pos0...pos16383
hole from pos16384...pos65535
data from pos 65546...pos100020