I'm trying to do a disk file pre-allocation under XP and Vista programmatically. I'm using just an fseek() positionning on the desired max space at creation time since I've read that if it goes beyond the EOF it automaticcaly fills the empty space with zeroes.
Well, it doesn't allocate (size 0k under Explorer) if I do just the fseek(). But as soon as I do a write somewhere, righte after it fills-in with spaces.
Is there any other technique, more reliable, to do file disk pre-allocation?