Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

2.1.5.5.3.1 FileBothDirectoryInformation

OutputBuffer is an array of one or more FILE_BOTH_DIR_INFORMATION structures as described in [MS-FSCC] section 2.4.8. Entry is a parameter to this routine that points to the current FILE_BOTH_DIR_INFORMATION structure to fill out. Note that the FileName field is not set in this section.

Pseudocode for the operation is as follows:

  • If OutputBufferSize is smaller than FieldOffset(FILE_BOTH_DIR_INFORMATION.FileName), the operation MUST be failed with STATUS_INFO_LENGTH_MISMATCH.

  • The object store MUST process this query using the algorithm described in section 2.1.5.5.3.

  • Entry MUST be constructed as follows:

    • Entry .NextEntryOffset set to zero

    • Entry .FileIndex set to zero

    • Entry .CreationTime set to Link.File.CreationTime

    • Entry .LastAccessTime set to Link.File.LastAccessTime

    • Entry .LastWriteTime set to Link.File.LastModificationTime

    • Entry .ChangeTime set to Link.File.LastChangeTime

    • Entry .EndOfFile set to DefaultStream.Size

    • Entry .AllocationSize set to DefaultStream.AllocationSize

    • Entry .FileAttributes set to Link.File.FileAttributes

    • If Link.File.FileType is DirectoryFile:

      • Entry .FileAttributes.FILE_ATTRIBUTE_DIRECTORY is set

    • EndIf

    • If Entry.FileAttributes has no attributes set:

      • Entry .FileAttributes.FILE_ATTRIBUTE_NORMAL is set

    • EndIf

    • If Link.File.FileAttributes.FILE_ATTRIBUTE_REPARSE_POINT is set:

      • Entry .EaSize set to Link.File.ReparseTag

    • Else:

      • Entry .EaSize set to Link.File.ExtendedAttributesLength<47>

    • EndIf

    • If Link.ShortName is not empty:

      • Entry .ShortNameLength set to the length, in bytes, of Link.ShortName

      • Entry .ShortName set to Link.ShortName padding with zeroes as necessary

    • Else:

      • Entry .ShortNameLength set to zero

      • Entry .ShortName is filled with zeroes

    • EndIf

    • Entry .FileNameLength set to the length ,in bytes, of Link.Name

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.