NT_TRANSACT_QUERY_QUOTA (0x0007) An command with an NT_TRANSACT_QUERY_QUOTA subcommand code is used by a client to query quota information for a user or multiple users. This subcommand is new to these extensions. Client Request The NT_TRANSACT_QUERY_QUOTA request is a special case of the SMB_COM_NT_TRANSACT command request. Only the NT_TRANSACT_QUERY_QUOTA specifics are described here. At least one of NT_Trans_Parameters.SidListLength or NT_Trans_Parameters.StartSidLength MUST be zero. If both are zero, then the quota information for all , as specified in section 2.4.2, on the underlying object store of a share MUST be enumerated by the server. SMB_Parameters WordCount (1 byte): The of this field MUST be 0x13. Words (38 bytes): As specified in section 2.2.4.62.1 and with the following exceptions: SetupCount (1 bytes): This field MUST be 0x00. NT_Trans_Parameters: NT_Trans_Parameters { USHORT FID; BOOLEAN ReturnSingleEntry; BOOLEAN RestartScan; ULONG SidListLength; StartSidLength; StartSidOffset; } 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 FID ReturnSingleEntry RestartScan SidListLength StartSidLength StartSidOffset FID (2 bytes): An Fid to a file or directory. The quota information of the object store underlying the file or directory MUST be queried. ReturnSingleEntry (1 byte): If TRUE (any non-zero value), then this field indicates that the server behavior is to be restricted to only return a single SID's quota information instead of filling the entire buffer. RestartScan (1 byte): If TRUE (any non-zero value), then this field indicates that the scan of quota information is to be restarted.
NT_TRANSACT_QUERY_QUOTA (0x0007) An command with an NT_TRANSACT_QUERY_QUOTA subcommand code is used by a client to query quota information for a user or multiple users. This subcommand is new to these extensions. Client Request The NT_TRANSACT_QUERY_QUOTA request is a special case of the SMB_COM_NT_TRANSACT command request. Only the NT_TRANSACT_QUERY_QUOTA specifics are described here. At least one of NT_Trans_Parameters.SidListLength or NT_Trans_Parameters.StartSidLength MUST be zero. If both are zero, then the quota information for all , as specified in section 2.4.2, on the underlying object store of a share MUST be enumerated by the server. SMB_Parameters WordCount (1 byte): The of this field MUST be 0x13. Words (38 bytes): As specified in section 2.2.4.62.1 and with the following exceptions: SetupCount (1 bytes): This field MUST be 0x00. NT_Trans_Parameters: NT_Trans_Parameters { USHORT FID; BOOLEAN ReturnSingleEntry; BOOLEAN RestartScan; ULONG SidListLength; StartSidLength; StartSidOffset; } 0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 FID ReturnSingleEntry RestartScan SidListLength StartSidLength StartSidOffset FID (2 bytes): An Fid to a file or directory. The quota information of the object store underlying the file or directory MUST be queried. ReturnSingleEntry (1 byte): If TRUE (any non-zero value), then this field indicates that the server behavior is to be restricted to only return a single SID's quota information instead of filling the entire buffer. RestartScan (1 byte): If TRUE (any non-zero value), then this field indicates that the scan of quota information is to be restarted.