Function 70, subfunction 4 - set end of file.
Parameters:
- eax = 70 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 4 = subfunction number
- +4: dword: low dword of new file size
- +8: dword: high dword of new file size (must be 0 for FAT)
- +12 = +0xC: dword: 0 (reserved)
- +16 = +0x10: dword: 0 (reserved)
- +20 = +0x14: ASCIIZ-name of file, the rules of names forming are
given in the general description
or
- +20 = +0x14: db 0
- +21 = +0x15: dd pointer to ASCIIZ-string with file name
Returned value:
Remarks:
- If the new file size is less than old one, file is truncated.
If the new size is greater than old one, file is expanded with
characters with code 0. If the new size is equal to old one,
the only result of call is set date/time of modification and
access to the current date/time.
- If there is not enough free space on disk for expansion, the
function will expand to maximum possible size and then return
error code 8.
- The function is not supported for CD (returns error code 2).