Hi
I am trying to defragment a particular file using the
FSCTL_GET_RETRIEVAL_POINTERS and FSCTL_MOVE_FILE using DeviceIoControl.
FSCTL_GET_RETRIEVAL_POINTERS works fine and I am able to get the fragment
count.
But when I try to move the clusters using FSCTL_MOVE_FILE, I get the error
code 1, implying Incorrect Function.
When I checked the documentation it say, the error is due to the cluster
size greater than 4KB. But my cluster size is 4KB.
I am using Win XP Pro with SP2.
Could any of you experts help me in resolving this.
Thanks a lot for the help,
Cheers
Ramananda