pub struct QueryDirectoryRequest {
pub file_information_class: QueryDirectoryInfoClass,
pub flags: QueryDirectoryFlags,
pub file_index: u32,
pub file_id: FileId,
pub output_buffer_length: u32,
pub file_name: SizedWideString,
}Expand description
SMB2 QUERY_DIRECTORY Request packet for obtaining directory enumeration.
This request is sent by the client to obtain a directory enumeration on a directory open. The client specifies the type of information desired and can optionally provide a search pattern to filter the results.
Reference: MS-SMB2 section 2.2.33, page 10906442-294c-46d3-8515-c277efe1f752
Fields§
§file_information_class: QueryDirectoryInfoClassThe file information class describing the format that data must be returned in. Specifies which type of directory information structure should be used for each entry.
flags: QueryDirectoryFlagsFlags indicating how the query directory operation must be processed. Controls behavior such as restarting enumeration or returning single entries.
file_index: u32The byte offset within the directory to resume enumeration from. Must be supplied when INDEX_SPECIFIED flag is set, otherwise must be zero.
file_id: FileIdIdentifier of the directory on which to perform the enumeration. This is returned from an SMB2 Create Request to open a directory.
output_buffer_length: u32The maximum number of bytes the server is allowed to return in the response.
file_name: SizedWideStringUnicode search pattern for the request with wildcards and other conventions. Format is specified in MS-CIFS section 2.2.1.1.3.
Trait Implementations§
Source§impl BinRead for QueryDirectoryRequest
impl BinRead for QueryDirectoryRequest
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for QueryDirectoryRequest
impl BinWrite for QueryDirectoryRequest
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer, assuming big-endian byte order, using the
given arguments. Read more