Module: RubySMB::SMB1::Packet::Trans2::QueryInformationLevel

Defined in:
lib/ruby_smb/smb1/packet/trans2/query_information_level.rb,
lib/ruby_smb/smb1/packet/trans2/query_information_level/query_file_basic_info.rb,
lib/ruby_smb/smb1/packet/trans2/query_information_level/query_file_standard_info.rb

Overview

SMB_QUERY_FILE_STANDARD_INFO Class as defined in 2.2.8.3.7 SMB_QUERY_FILE_STANDARD_INFO

Defined Under Namespace

Classes: QueryFileBasicInfo, QueryFileStandardInfo

Constant Summary collapse

SMB_INFO_STANDARD =

[LANMAN2.0] Query creation, access, and last write timestamps, size and file attributes.

0x0001
SMB_INFO_QUERY_EA_SIZE =

[LANMAN2.0] Query the SMB_INFO_STANDARD data along with the size of the file's extended attributes (EAs).

0x0002
SMB_INFO_QUERY_EAS_FROM_LIST =

[LANMAN2.0] Query a file's specific EAs by attribute name.

0x0003
SMB_INFO_QUERY_ALL_EAS =

[LANMAN2.0] Query all of a file's EAs.

0x0004
SMB_INFO_IS_NAME_VALID =

[LANMAN2.0] Validate the syntax of the path provided in the request. Not supported for TRANS2_QUERY_FILE_INFORMATION.

0x0006
SMB_QUERY_FILE_BASIC_INFO =

[NT LANMAN] Query 64-bit create, access, write, and change timestamps along with extended file attributes.

0x0101
SMB_QUERY_FILE_STANDARD_INFO =

[NT LANMAN] Query size, number of links, if a delete is pending, and if the path is a directory.

0x0102
SMB_QUERY_FILE_EA_INFO =

[NT LANMAN] Query the size of the file's EAs.

0x0103
SMB_QUERY_FILE_NAME_INFO =

[NT LANMAN] Query the long file name in Unicode format.

0x0104
SMB_QUERY_FILE_ALL_INFO =

[NT LANMAN] Query the SMB_QUERY_FILE_BASIC_INFO, SMB_QUERY_FILE_STANDARD_INFO, SMB_QUERY_FILE_EA_INFO, and SMB_QUERY_FILE_NAME_INFO data as well as access flags, access mode, and alignment information in a single request.

0x0107
SMB_QUERY_FILE_ALT_NAME_INFO =

[NT LANMAN] Query the 8.3 file name.<22>

0x0108
SMB_QUERY_FILE_STREAM_INFO =

[NT LANMAN] Query file stream information.

0x0109
SMB_QUERY_FILE_COMPRESSION_INFO =

[NT LANMAN] Query file compression information.

0x010B

Class Method Summary collapse

Class Method Details

.name(value) ⇒ Object

267



52
53
54
# File 'lib/ruby_smb/smb1/packet/trans2/query_information_level.rb', line 52

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