Receiving an SMB_COM_QUERY_INFORMATION2 Request

Upon receiving an SMB_COM_QUERY_INFORMATION2 Request (section from the client, the server MUST validate the FID provided by looking up the FID in Server.Connection.FileOpenTable. The FID MUST indicate a regular file. If an error occurs, an error response message MUST be generated. If an open is found and Open.GrantedAccess does not include FILE_READ_ATTRIBUTES access, the server MUST send an error response with a status of STATUS_ACCESS_DENIED (ERRDOS/ERRnoaccess) and MUST increase Server.Statistics.sts0_permerrors by 1. If the UID presented is different from the UID that opened the file, the server MUST send the error response with a Status of STATUS_INVALID_HANDLE (ERRDOS/ERRbaduid). Otherwise, the server MUST obtain the required attribute information, as listed in section The SMB_COM_QUERY_INFORMATION2 response MUST be formatted as described in that section, and the response messages MUST be sent to the client as specified in section<284>