SetResourceSize
data. You can change the size of any resource, regardless of the amount of
memory you have available. Note that if you make the resource smaller, you
lose any data at the end of that resource.
The parameter theResource is a handle that specifies the resource on disk. The
value of the size parameter is the size you want the resource to occupy on disk,
in bytes. If you set the size smaller than it was, you lose any data at the end of
the resource. If the size is set larger, all data is p reserved, but the enlarged
area is un initialized. Call ResError to check for errors. If the disk is locked or full, or the file is locked, ResError returns the appropriate file system error. If the resource is in memory, the
and does not update the copy in memory. If it is not successful, ResError returns the appropriate file system error.
resourceInMemory (-188) Resource already in memory
writingPastEnd (-189) Writing past end of file