Function 70, subfunction 6 - set attributes of file/folder.
Parameters:
- eax = 70 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 6 = subfunction number
- +4: dword: 0 (reserved)
- +8: dword: 0 (reserved)
- +12 = +0xC: dword: 0 (reserved)
- +16 = +0x10: dword: pointer to buffer with attributes (32 bytes)
- +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:
File attributes are first 32 bytes in BDFE (block of data
for folder entry), explained in the description of subfunction 1
(that is, without name and size of file). Attribute
file/folder/volume label (bits 3,4 in dword +0) is not changed.
Byte +4 (name format) is ignored.
Remarks:
- The function does not support virtual folders such as /, /rd and
root folders like /rd/1.
- The function is not supported for CD (returns error code 2).