Author: pschweitzer
Date: Wed Oct 8 19:45:33 2014
New Revision: 64618
URL:
http://svn.reactos.org/svn/reactos?rev=64618&view=rev
Log:
[NTFS]
- Add missing defines about file attributes
- Implement NtfsFCBIsDirectory()
Source:
http://bos.asmhackers.net/docs/filesystems/ntfs/filename.html
Modified:
trunk/reactos/drivers/filesystems/ntfs/fcb.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.h
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Wed Oct 8 19:45:33 2014
@@ -118,10 +118,7 @@
BOOLEAN
NtfsFCBIsDirectory(PNTFS_FCB Fcb)
{
- UNREFERENCED_PARAMETER(Fcb);
-// return(Fcb->entry.Attrib & FILE_ATTRIBUTE_DIRECTORY);
-// return(Fcb->Entry.FileFlags & 0x02);
- return TRUE;
+ return ((Fcb->Entry.FileAttributes & NTFS_FILE_TYPE_DIRECTORY) ==
NTFS_FILE_TYPE_DIRECTORY);
}
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 8 19:45:33 2014
@@ -187,6 +187,13 @@
#define NTFS_FILE_NAME_WIN32 1
#define NTFS_FILE_NAME_DOS 2
#define NTFS_FILE_NAME_WIN32_AND_DOS 3
+
+#define NTFS_FILE_TYPE_READ_ONLY 0x1
+#define NTFS_FILE_TYPE_HIDDEN 0x2
+#define NTFS_FILE_TYPE_SYSTEM 0x4
+#define NTFS_FILE_TYPE_ARCHIVE 0x20
+#define NTFS_FILE_TYPE_COMPRESSED 0x800
+#define NTFS_FILE_TYPE_DIRECTORY 0x10000000
typedef struct
{