4 / 723
[MS-CIFS] - v20160714
Common Internet File System (CIFS) Protocol
Copyright © 2016 Microsoft Corporation
Release: July 14, 2016
2.2.2.3.1 FIND Information Level Codes ........................................................... 64
2.2.2.3.2 QUERY_FS Information Level Codes ................................................... 64
2.2.2.3.3 QUERY Information Level Codes ........................................................ 65
2.2.2.3.4 SET Information Level Codes ............................................................ 65
2.2.2.4 SMB Error Classes and Codes ................................................................. 66
2.2.2.5 Data Buffer Format Codes ...................................................................... 76
2.2.3 SMB Message Structure ............................................................................... 77
2.2.3.1 The SMB Header ................................................................................... 77
2.2.3.2 Parameter Block ................................................................................... 83
2.2.3.3 Data Block ........................................................................................... 83
2.2.3.4 Batched Messages ("AndX" Messages) ..................................................... 84
2.2.3.4.1 Follow-on Commands ....................................................................... 84
2.2.4 SMB Commands ......................................................................................... 85
2.2.4.1 SMB_COM_CREATE_DIRECTORY (0x00) .................................................. 85
2.2.4.1.1 Request ......................................................................................... 85
2.2.4.1.2 Response ....................................................................................... 86
2.2.4.2 SMB_COM_DELETE_DIRECTORY (0x01) ................................................... 87
2.2.4.2.1 Request ......................................................................................... 87
2.2.4.2.2 Response ....................................................................................... 88
2.2.4.3 SMB_COM_OPEN (0x02) ........................................................................ 90
2.2.4.3.1 Request ......................................................................................... 90
2.2.4.3.2 Response ....................................................................................... 93
2.2.4.4 SMB_COM_CREATE (0x03) ..................................................................... 97
2.2.4.4.1 Request ......................................................................................... 97
2.2.4.4.2 Response ....................................................................................... 98
2.2.4.5 SMB_COM_CLOSE (0x04) ..................................................................... 101
2.2.4.5.1 Request ........................................................................................ 101
2.2.4.5.2 Response ...................................................................................... 102
2.2.4.6 SMB_COM_FLUSH (0x05) ...................................................................... 103
2.2.4.6.1 Request ........................................................................................ 103
2.2.4.6.2 Response ...................................................................................... 104
2.2.4.7 SMB_COM_DELETE (0x06) .................................................................... 106
2.2.4.7.1 Request ........................................................................................ 106
2.2.4.7.2 Response ...................................................................................... 108
2.2.4.8 SMB_COM_RENAME (0x07) ................................................................... 109
2.2.4.8.1 Request ........................................................................................ 109
2.2.4.8.2 Response ...................................................................................... 111
2.2.4.9 SMB_COM_QUERY_INFORMATION (0x08) ............................................... 113
2.2.4.9.1 Request ........................................................................................ 113
2.2.4.9.2 Response ...................................................................................... 114
2.2.4.10 SMB_COM_SET_INFORMATION (0x09) ................................................... 116
2.2.4.10.1 Request ........................................................................................ 116
2.2.4.10.2 Response ...................................................................................... 118
2.2.4.11 SMB_COM_READ (0x0A) ....................................................................... 120
2.2.4.11.1 Request ........................................................................................ 120
2.2.4.11.2 Response ...................................................................................... 121
2.2.4.12 SMB_COM_WRITE (0x0B) ..................................................................... 124
2.2.4.12.1 Request ........................................................................................ 125
2.2.4.12.2 Response ...................................................................................... 127
2.2.4.13 SMB_COM_LOCK_BYTE_RANGE (0x0C) .................................................. 129
2.2.4.13.1 Request ........................................................................................ 130
2.2.4.13.2 Response ...................................................................................... 131
2.2.4.14 SMB_COM_UNLOCK_BYTE_RANGE (0x0D) .............................................. 132
2.2.4.14.1 Request ........................................................................................ 133
2.2.4.14.2 Response ...................................................................................... 134
2.2.4.15 SMB_COM_CREATE_TEMPORARY (0x0E) ................................................. 136
2.2.4.15.1 Request ........................................................................................ 136
2.2.4.15.2 Response ...................................................................................... 137