This request is used to set information about a specific file or subdirectory.
| Client Request ========================== |
Value ========================================= |
| WordCount | 15 |
| MaxSetupCount | 0 |
| SetupCount | 1 |
| Setup[0] | TRANS2_SET_PATH_INFORMATION |
| Parameter Block Encoding ========================== |
Description ========================================= |
| USHORT InformationLevel; | Level of information to set |
| ULONG Reserved; | Must be zero |
| STRING FileName; | File or directory name |
The following InformationLevels may be set:
| Information Level ========================== |
Value ========================================= |
| SMB_INFO_STANDARD | 1 |
| SMB_INFO_QUERY_EA_SIZE | 2 |
| SMB_INFO_QUERY_ALL_EAS | 4 |
The response formats are:
| Parameter Block Encoding ================================== |
Description ================================= |
| USHORT Reserved | 0 |
| Data Block Encoding ================================== |
Description ================================= |
| SMB_DATE CreationDate; | Date when file was created |
| SMB_TIME CreationTime; | Time when file was created |
| SMB_DATE LastAccessDate; | Date of last file access |
| SMB_TIME LastAccessTime; | Time of last file access |
| SMB_DATE LastWriteDate; | Date of last write to the file |
| SMB_TIME LastWriteTime; | Time of last write to the file |
| ULONG DataSize; | File Size |
| ULONG AllocationSize; | Size of filesystem allocation unit |
| USHORT Attributes; | File Attributes |
| ULONG EaSize; | Size of file's EA information (SMB_INFO_QUERY_EA_SIZE) |
| Response Field ==================== |
Value =============================================== |
| MaxDataCount | Length of FEAlist found (minimum value is 4) |
| Parameter Block Encoding ==================== |
Description =============================================== |
| USHORT EaErrorOffset | Offset into EAList of EA error |
| Data Block Encoding ==================== |
Description =============================================== |
| ULONG ListLength; | Length of the remaining data |
| UCHAR EaList[] | The extended attributes list |