This call sets attribute and extended attribute information for a file.
DosSetFileInfo
FileHandle (HFILE) - input
Level 1 Information
filedate (FDATE)
Bit
Bit
fpGEAList (PGEALIST)
cbList (ULONG)
Flags (BYTE)
Bit
DosSetFileInfo is successful only when the file is opened for write access, with a deny-both sharing mode specified for access to the file by other processes. If the file is already opened with conflicting sharing rights, the call to DosOpen or DosOpen2 will fail.
A 0 value in the date and time components of a field does not change the field. For example, if both "last write date" and "last write time" are specified as 0 in the Level 1 information structure, then both attributes of the file are left unchanged. If either "last write date" or "last write time" are specified as non-zero, both attributes of the file are set to the new values.
The FAT file system supports modification of only the dates and times of the last write. Creation and last access dates and times are not affected.
The last modification date and time will get changed if the extended attributes are modified.
Family API Considerations
It is not possible to create a label with leading blank characters in DOS mode, because of restrictions on the previous Interrupt 21h function call (create an FCB type file), which must be used by FAPI.