Function 70, subfunction 3 - write to existing file with long names support.
Parameters:
- eax = 70 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 3 = subfunction number
- +4: dword: file offset (in bytes)
- +8: dword: high dword of offset (must be 0 for FAT)
- +12 = +0xC: dword: number of bytes to write
- +16 = +0x10: dword: pointer to data
- +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:
- The file must already exist, otherwise function returns eax=5.
- The only result of write 0 bytes is update in the file attributes
date/time of modification and access to the current date/time.
- If beginning and/or ending position is greater than file size
(except for the previous case), the file is expanded to needed
size with zero characters.
- The function is not supported for CD (returns error code 2).