3.3.5.32 Receiving an SMB_COM_IOCTL Request

Upon receipt of an SMB_COM_IOCTL request, the server MUST verify that the FID is valid (by locating an Open with a matching Open.FID in the Server.Connection.FileOpenTable). The UID MUST indicate a Server.Session.UserSecurityContext with sufficient permission to perform the IOCTL. The IOCTL request MUST be unpacked as specified in section 2.2.4.35.1, and the server MUST call the IOCTL function indicated by the Category and Function fields in the request.<292>

If the IOCTL is successful, the server MUST construct an SMB_COM_IOCTL response message as specified in section 2.2.4.35.2. The response MUST be sent to the client as specified in section 3.3.4.1.