Function 58, subfunction 5 - rename/move file/folder.
Parameters:
- eax = 58 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 5 = subfunction number
- +4: dword: ignored
- +8: dword: ignored
- +12 = +0xC: dword: ignored
- +16 = +0x10: dword: pointer to buffer for system operations
(4096 bytes)
- +20 = +0x14: ASCIIZ-name of file, the rules of names forming are
given in the general description
- +20+n: (at once after terminating null character) new
ASCIIZ-name, must start from /hd/1, that is interpreted as
the hard disk, indicated in the first name
(moving from one disk to another is not supported)
Returned value:
Remarks:
- Ramdisk and floppies do not support this function, it is only
for hard disks.
- If the new ASCIIZ-name is strongly incorrect, i.e. does not start
from /hd/1, /hd/first, /harddisk/1, /harddisk/first or after this
space or null character follows, function returns, strangely
enough, error code 4. It is the only function which returns
this code.