Function 70, subfunction 2 - create/rewrite file with long names support.
Parameters:
- eax = 70 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 2 = subfunction number
- +4: dword: 0 (reserved)
- +8: dword: 0 (reserved)
- +12 = +0xC: dword: number of bytes to read
- +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:
- If a file with given name did not exist, it is created;
if it existed, it is rewritten.
- If there is not enough free space on disk, the function will
write as many as can and then return error code 8.
- The function is not supported for CD (returns error code 2).