Looks fine - and where do you do the actual resize?

A WInAPI function to use is SetFilePointer() but you should remember that it's winapi and not protable. Also winapi isn't that easy for beginners.