/// <summary> /// Method to send TS_RFX_CHANNELS to client. /// </summary> public void SendTsRfxChannels() { TS_RFX_CHANNELS rfxChannels = rdprfxServer.CreateTsRfxChannels(); if (this.currentTestType == RdprfxNegativeType.TsRfxChannelT_InvalidWidth_TooSmall) { rfxChannels.channels[0].width = 0; //set to an invalid value which less than 1. } else if (this.currentTestType == RdprfxNegativeType.TsRfxChannelT_InvalidWidth_TooBig) { rfxChannels.channels[0].width = 4097; //set to an invalid value which greater than 4096. } else if (this.currentTestType == RdprfxNegativeType.TsRfxChannelT_InvalidHeight_TooSmall) { rfxChannels.channels[0].height = 0; //set to an invalid value which less than 1. } else if (this.currentTestType == RdprfxNegativeType.TsRfxChannelT_InvalidHeight_TooBig) { rfxChannels.channels[0].height = 2049; //set to an invalid value which greater than 2048. } else if (this.currentTestType == RdprfxNegativeType.TsRfxChannels_InvalidChannelId) { rfxChannels.channels[0].channelId = 0x01; //set to an invalid value other than 0x00. } AddToPendingList(rfxChannels); }
/// <summary> /// Method to send TS_RFX_CHANNELS to client. /// </summary> /// <param name="width">The width of the channel</param> /// <param name="height">The height of the channel</param> public void SendTsRfxChannels(short width, short height) { TS_RFX_CHANNELS rfxChannels = rdprfxServer.CreateTsRfxChannels(); rfxChannels.channels[0].width = width; rfxChannels.channels[0].height = height; AddToPendingList(rfxChannels); }