https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c58a601602095f5a388d9a4c7d8b681a2b5e0181

commit c58a601602095f5a388d9a4c7d8b681a2b5e0181
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sat Jul 4 22:19:45 2020 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sun Sep 13 22:50:11 2020 +0200

    [CMD] Document the two extra file attributes the enhanced batch/FOR 
variables %~aX could handle on Windows >= 8.
    
    They are currently specified for documentation purposes (i.e. what
    Windows 8+ CMD.EXE can report) but not used yet, since ReactOS does not
    support them.
---
 base/shell/cmd/cmd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/base/shell/cmd/cmd.c b/base/shell/cmd/cmd.c
index f760bf7745c..caa60a466fe 100644
--- a/base/shell/cmd/cmd.c
+++ b/base/shell/cmd/cmd.c
@@ -1143,6 +1143,10 @@ GetEnhancedVar(TCHAR **pFormat, LPTSTR (*GetVar)(TCHAR, 
BOOL *))
                 { _T('o'), FILE_ATTRIBUTE_OFFLINE },
                 { _T('t'), FILE_ATTRIBUTE_TEMPORARY },
                 { _T('l'), FILE_ATTRIBUTE_REPARSE_POINT },
+#if (NTDDI_VERSION >= NTDDI_WIN8)
+                { _T('v'), FILE_ATTRIBUTE_INTEGRITY_STREAM },
+                { _T('x'), FILE_ATTRIBUTE_NO_SCRUB_DATA /* 0x20000 */ },
+#endif
             };
             for (Attrib = Table; Attrib != &Table[ARRAYSIZE(Table)]; Attrib++)
             {

Reply via email to