Author: pschweitzer
Date: Wed Oct 15 20:23:47 2014
New Revision: 64752
URL:
http://svn.reactos.org/svn/reactos?rev=64752&view=rev
Log:
[NTFS]
Implement NtfsDateTimeToFileTime() which convert epoch time (1970) to Windows time (1601)
Modified:
trunk/reactos/drivers/filesystems/ntfs/misc.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.h
Modified: trunk/reactos/drivers/filesystems/ntfs/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] Wed Oct 15 20:23:47 2014
@@ -97,4 +97,16 @@
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 */
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Wed Oct 15 20:23:47 2014
@@ -680,11 +680,13 @@
CdfsSwapString(PWCHAR Out,
PUCHAR In,
ULONG Count);
-
-VOID
-CdfsDateTimeToFileTime(PFCB Fcb,
- TIME *FileTime);
-
+#endif
+
+VOID
+NtfsDateTimeToFileTime(ULONGLONG NtfsTime,
+ PLARGE_INTEGER SystemTime);
+
+#if 0
VOID
CdfsFileFlagsToAttributes(PFCB Fcb,
PULONG FileAttributes);