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, and the server MUST call the IOCTL function indicated by the Category and Function fields in the request.<291>

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