3.2.5.1.11 Sending a Device Control Response Message

This message is sent in response to the server device control request (section 3.2.5.1.6).

The client MUST fill out the various members of DR_CONTROL_RSP (as specified in [MS-RDPEFS] section 2.2.1.5.5) as follows:

For the RDPDR_HEADER:

  • The Component field MUST be set to RDPDR_CTYP_CORE.

  • The PacketId field MUST be set to PAKID_CORE_DEVICE_IOCOMPLETION.

For the DR_DEVICE_IOCOMPLETION:

  • The DeviceId field MUST be set to match the corresponding DeviceId field from the IO request.

  • The CompletionId field MUST be set to match the CompletionId field from the corresponding IO request (section 3.2.5.1.6).

  • The IoStatus field MUST be set to the NTSTATUS indicating the result of the operation.

The client prepares a reply message with the result of the device control operation. The client populates the OutputBufferLength field with the number of bytes returned by the device control operation. The actual data returned, if any, follows the packet.