Hello Gurus,

I want one of my files to be always unmovable in disk. For instance i create a 80 MB file and mark it as System,Readonly and Hidden. I make it as a contiguos file (on the disk as contiguos sectors) by using the Defrag APIs. Now my only other objective is to make this file unmovable on the disk. Windows XP provides an interesting DeviceIOControl of FSCTL_MARK_HANDLE with MARK_HANDLE_INFO. This would make the File clusters locked so that any Defrag process will not be able to move the file on the disk. However this works only in NTFS as the Structure is valid only for NTFS. Also This is not at all applicable in Windows 2000.
How to make a file unmovable by any Defrag processes in Windows 2000 as well as FAT Systems.
One of sugested tips was open a file for exclusive access and defrag will not be able to move it. But unfortunately that does not work.
Any tips guys??

Thanks and Regards
Kandukondein.