Sparse files in WinXP SP3

Suddenly it turned out that WinXP SP3 does not allow creating a sparse NTFS file in user mode . Namely, DeviceIoControl

c FSCTL_SET_SPARSE

returns with error 0x57 ( ERROR_INVALID_PARAMETER

). This same code works well in SP2. Also, it's okay if you make the same calls from kernel mode (in both SP3 and SP2).

Google says nothing about this. Has anyone met this issue or even got more information on this?

0


source to share


1 answer


The resolved files work fine for me in WinXP SP3. What is the meaning of GetLastError after calling CreateFile? Or after DeviceIoControl if that's what you are using?

This site has some good information on sparse files: http://www.flexhex.com/docs/articles/sparse-files.phtml



MSDN documentation is provided.

+1


source







All Articles