FS_FileDateTime(
PIOREQ pir
)
The file modification date and time is set and retrieved through FS_FileDateTime. This routine handles the INT 21h function: 57h.
Command Type Values:
One of the following types will be specified. |
|
Value | Meaning |
---|---|
GET_MODIFY_DATETIME | Get the file modification date and time. |
SET_MODIFY_DATETIME | Set the file modification date and time. |
GET_LAST_ACCESS_DATETIME | Get the last access date and time for the file. |
SET_LAST_ACCESS_DATETIME | Set the last access date and time for the file. |
GET_CREATION_DATE_TIME | Get the creation date and time for the file. |
SET_CREATION_DATE_TIME | Set the creation date and time for the file. |
ir_error | Returns status of the operation ( 0 if no error, errorcode otherwise ). |
ir_dostime | Returns current file date and time on all the get commands. The date and time is in DOS format. For GET_LAST_ACCESS_DATETIME, if only the date is supported, the time field should be set to 0. |
ir_options | Returns the 10 millisecond interval on the GET_CREATION_DATE_TIME. |
Any fields that are not supported will have an input value if zero. If the FSD does not support any of the date and time fields it should return 0 and not fail the call. The creation time has additional precision over the normal DOS time of 2-second intervals - it gives a precision up to 10 milliseconds, the new parameter specifying the number of 10 millisecond intervals beyond the 2 second precision already stored in the DOS time.