FSCTL_MARK_HANDLE not working in WinXP with NTFS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a sequential file created on the C root ( NTFS partition with WinXP
Home ), I want to keep it always sequential, so I tried the new
FSCTL_MARK_HANDLE to make the file from being moved by windows defragging
APIs. But whatever I tried, it won't work, with GetLastError() returns
0x00000057. It says incorrect parameter.

Also I know this deviceIOControl won't work on Win2K, it only works starting
with WinXP, NTFS file system.

I don't know why, could you help? Either with some sample code, or some
advice.

Thanks
 
Thanks for your reply.

My question here is that, I do exactly the same as mentioned in the link,
but it failed, and GetLastError() return 0x00000057, I want to know why, do
I miss anything not documented there?

Have anybody experienced similar problem?


Regards....
 
Back
Top