3.1.5.1 Processing an Input Message

 All input messages are prefaced by the RDPINPUT_HEADER (section 2.2.2.6) structure.

When an input message is processed, the eventId field in the header MUST first be examined to determine if the message is within the subset of expected messages. If the message is not expected, it SHOULD be ignored.

If the message is in the correct sequence, the pduLength field MUST be examined to make sure that it is consistent with the amount of data read from the "Microsoft::Windows::RDS::Input" dynamic virtual channel (section 2.1). If this is not the case, the message SHOULD be ignored.