Module: RubySMB::Fscc::FileInformation

Included in:
SMB1::Packet::Trans2::SetFileInformationRequestTrans2Data, SMB2::Packet::SetInfoRequest
Defined in:
lib/ruby_smb/fscc/file_information.rb,
lib/ruby_smb/fscc/file_information/file_ea_information.rb,
lib/ruby_smb/fscc/file_information/file_all_information.rb,
lib/ruby_smb/fscc/file_information/file_mode_information.rb,
lib/ruby_smb/fscc/file_information/file_name_information.rb,
lib/ruby_smb/fscc/file_information/file_basic_information.rb,
lib/ruby_smb/fscc/file_information/file_names_information.rb,
lib/ruby_smb/fscc/file_information/file_access_information.rb,
lib/ruby_smb/fscc/file_information/file_rename_information.rb,
lib/ruby_smb/fscc/file_information/file_stream_information.rb,
lib/ruby_smb/fscc/file_information/file_internal_information.rb,
lib/ruby_smb/fscc/file_information/file_position_information.rb,
lib/ruby_smb/fscc/file_information/file_standard_information.rb,
lib/ruby_smb/fscc/file_information/file_alignment_information.rb,
lib/ruby_smb/fscc/file_information/file_directory_information.rb,
lib/ruby_smb/fscc/file_information/file_disposition_information.rb,
lib/ruby_smb/fscc/file_information/file_network_open_information.rb,
lib/ruby_smb/fscc/file_information/file_both_directory_information.rb,
lib/ruby_smb/fscc/file_information/file_full_directory_information.rb,
lib/ruby_smb/fscc/file_information/file_normalized_name_information.rb,
lib/ruby_smb/fscc/file_information/file_id_both_directory_information.rb,
lib/ruby_smb/fscc/file_information/file_id_full_directory_information.rb

Overview

Namespace and constant values for File Information Classes, as defined in 2.4 File Information Classes

Defined Under Namespace

Classes: FileAccessInformation, FileAlignmentInformation, FileAllInformation, FileBasicInformation, FileBothDirectoryInformation, FileDirectoryInformation, FileDispositionInformation, FileEaInformation, FileFullDirectoryInformation, FileIdBothDirectoryInformation, FileIdFullDirectoryInformation, FileInternalInformation, FileModeInformation, FileNameInformation, FileNamesInformation, FileNetworkOpenInformation, FileNormalizedNameInformation, FilePositionInformation, FileRenameInformation, FileStandardInformation, FileStreamInformation

Constant Summary collapse

FILE_DIRECTORY_INFORMATION =

Information class used in directory enumeration to return detailed information about the contents of a directory.

0x01
FILE_FULL_DIRECTORY_INFORMATION =

Information class used in directory enumeration to return detailed information (with extended attributes size) about the contents of a directory.

0x02
FILE_BOTH_DIRECTORY_INFORMATION =

Information class used in directory enumeration to return detailed information (with extended attributes size and short names) about the contents of a directory.

0x03
FILE_BASIC_INFORMATION =

Information class used to query or set file information.

0x04
FILE_STANDARD_INFORMATION =

Information class is used to query file information.

0x05
FILE_INTERNAL_INFORMATION =

Information class used to query for the file system's 64-bit file ID.

0x06
FILE_EA_INFORMATION =

Information class used to query for the size of the extended attributes (EA) for a file.

0x07
FILE_ACCESS_INFORMATION =

Information class used to query the access rights of a file that were granted when the file was opened.

0x08
FILE_NAME_INFORMATION =

Information class is used locally to query the name of a file.

0x09
FILE_RENAME_INFORMATION =

Information class used to rename a file.

0x0A
FILE_NAMES_INFORMATION =

Information class used in directory enumeration to return detailed information (with only filenames) about the contents of a directory.

0x0C
FILE_DISPOSITION_INFORMATION =

Information class used to mark a file for deletion.

0x0D
FILE_POSITION_INFORMATION =

Information class used to query or set the position of the file pointer within a file.

0x0E
FILE_MODE_INFORMATION =

Information class used to query or set the mode of the file.

0x10
FILE_ALIGNMENT_INFORMATION =

Information class used to query the buffer alignment required by the underlying device.

0x11
FILE_STREAM_INFORMATION =

Information class used to enumerate the data streams of a file or a directory.

0x16
FILE_NETWORK_OPEN_INFORMATION =

This information class is used to query for information that is commonly needed when a file is opened across a network.

0x22
FILE_ID_BOTH_DIRECTORY_INFORMATION =

Information class used in directory enumeration to return detailed information (with extended attributes size, short names and file ID) about the contents of a directory.

0x25
FILE_ID_FULL_DIRECTORY_INFORMATION =

Information class used in directory enumeration to return detailed information (with extended attributes size and file ID) about the contents of a directory.

0x26
FILE_NORMALIZED_NAME_INFORMATION =

This information class is used to query the normalized name of a file. A normalized name is an absolute pathname where each short name component has been replaced with the corresponding long name component, and each name component uses the exact letter casing stored on disk.

0x30
FILE_ALL_INFORMATION =

Information class is used to query a collection of file information structures.

0x12
SMB_INFO_PASSTHROUGH =

These Information Classes can be used by SMB1 using the pass-through Information Levels when available on the server (CAP_INFOLEVEL_PASSTHRU capability flag in an SMB_COM_NEGOTIATE server response). The constant SMB_INFO_PASSTHROUGH needs to be added to access these Information Levels. This is documented in 2.2.2.3.5 Pass-through Information Level Codes

0x03e8

Class Method Summary collapse

Class Method Details

.name(value) ⇒ Object



99
100
101
# File 'lib/ruby_smb/fscc/file_information.rb', line 99

def self.name(value)
  constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
end