Partager via


2.2.8.2.5 SMB_QUERY_FS_DEVICE_INFO

This information level structure is used in TRANS2_QUERY_FS_INFORMATION Responses (section 2.2.6.4.2) to return device information of the object store underlying the share specified in the request.<173>

 SMB_QUERY_FS_DEVICE_INFO
   {
   ULONG DeviceType;
   ULONG DeviceCharacteristics;
   } 
  

DeviceType: (4 bytes): This field contains the device type on which the volume resides.

Name

Value

FILE_DEVICE_BEEP

0x0001

FILE_DEVICE_CD_ROM

0x0002

FILE_DEVICE_CD_ROM_FILE_SYSTEM

0x0003

FILE_DEVICE_CONTROLLER

0x0004

FILE_DEVICE_DATALINK

0x0005

FILE_DEVICE_DFS

0x0006

FILE_DEVICE_DISK

0x0007

FILE_DEVICE_DISK_FILE_SYSTEM

0x0008

FILE_DEVICE_FILE_SYSTEM

0x0009

FILE_DEVICE_INPORT_PORT

0x000a

FILE_DEVICE_KEYBOARD

0x000b

FILE_DEVICE_MAILSLOT

0x000c

FILE_DEVICE_MIDI_IN

0x000d

FILE_DEVICE_MIDI_OUT

0x000e

FILE_DEVICE_MOUSE

0x000f

FILE_DEVICE_MULTI_UNC_PROVIDER

0x0010

FILE_DEVICE_NAMED_PIPE

0x0011

FILE_DEVICE_NETWORK

0x0012

FILE_DEVICE_NETWORK_BROWSER

0x0013

FILE_DEVICE_NETWORK_FILE_SYSTEM

0x0014

FILE_DEVICE_NULL

0x0015

FILE_DEVICE_PARALLEL_PORT

0x0016

FILE_DEVICE_PHYSICAL_NETCARD

0x0017

FILE_DEVICE_PRINTER

0x0018

FILE_DEVICE_SCANNER

0x0019

FILE_DEVICE_SERIAL_MOUSE_PORT

0x001a

FILE_DEVICE_SERIAL_PORT

0x001b

FILE_DEVICE_SCREEN

0x001c

FILE_DEVICE_SOUND

0x001d

FILE_DEVICE_STREAMS

0x001e

FILE_DEVICE_TAPE

0x001f

FILE_DEVICE_TAPE_FILE_SYSTEM

0x0020

FILE_DEVICE_TRANSPORT

0x0021

FILE_DEVICE_UNKNOWN

0x0022

FILE_DEVICE_VIDEO

0x0023

FILE_DEVICE_VIRTUAL_DISK

0x0024

FILE_DEVICE_WAVE_IN

0x0025

FILE_DEVICE_WAVE_OUT

0x0026

FILE_DEVICE_8042_PORT

0x0027

FILE_DEVICE_NETWORK_REDIRECTOR

0x0028

FILE_DEVICE_BATTERY

0x0029

FILE_DEVICE_BUS_EXTENDER

0x002a

FILE_DEVICE_MODEM

0x002b

FILE_DEVICE_VDM

0x002c

DeviceCharacteristics: (4 bytes): This 32-bit field of flags contains the device characteristics. The individual flags are as follows.

Name

Bitmask

FILE_REMOVABLE_MEDIA

0x0001

FILE_READ_ONLY_DEVICE

0x0002

FILE_FLOPPY_DISKETTE

0x0004

FILE_WRITE_ONCE_MEDIA

0x0008

FILE_REMOTE_DEVICE

0x0010

FILE_DEVICE_IS_MOUNTED

0x0020

FILE_VIRTUAL_VOLUME

0x0040