Implement NtfsDateTimeToFileTime() which convert epoch time (1970) to Windows time (1601) 

svn path=/trunk/; revision=64752
This commit is contained in:
Pierre Schweitzer 2014-10-15 20:23:47 +00:00
parent 096445bc16
commit d71653b9cb
2 changed files with 16 additions and 2 deletions

View file

@ -97,4 +97,16 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
return IrpContext;
}
/* See:
-> http://msdn.microsoft.com/en-us/library/ms724228
-> http://bos.asmhackers.net/docs/filesystems/ntfs/standard.html#layout
*/
VOID
NtfsDateTimeToFileTime(ULONGLONG NtfsTime,
PLARGE_INTEGER SystemTime)
{
SystemTime->QuadPart = NtfsTime + 116444736000000000;
}
/* EOF */

View file

@ -680,11 +680,13 @@ VOID
CdfsSwapString(PWCHAR Out,
PUCHAR In,
ULONG Count);
#endif
VOID
CdfsDateTimeToFileTime(PFCB Fcb,
TIME *FileTime);
NtfsDateTimeToFileTime(ULONGLONG NtfsTime,
PLARGE_INTEGER SystemTime);
#if 0
VOID
CdfsFileFlagsToAttributes(PFCB Fcb,
PULONG FileAttributes);