/// <summary> /// Method to send TS_RFX_REGION to client. /// </summary> /// <param name="rects">Array of rects, if this parameter is null, will send a 64*64 rect </param> /// <param name="numRectsZero">A boolean varialbe to indicate whether the numRectsZero field of TS_RFX_REGION is zero</param> public void SendTsRfxRegion(Rectangle[] rects = null, bool numRectsZero = false) { TS_RFX_REGION rfxRegion = rdprfxServer.CreateTsRfxRegion(rects, numRectsZero); if (this.currentTestType == RdprfxNegativeType.TsRfxRegion_InvalidRegionFlags) { rfxRegion.regionFlags = 0x00; //set to an invalid value other than 0x01. } else if (this.currentTestType == RdprfxNegativeType.TsRfxRegion_InvalidRegionType) { rfxRegion.regionType = 0xBBBB; //set to an invalid value other than 0xCAC1. } if (this.rdpbcgrAdapter.SimulatedScreen != null) { this.rdpbcgrAdapter.SimulatedScreen.SetRemoteFXRegion(rfxRegion); } AddToPendingList(rfxRegion); }
/// <summary> /// Set TS_RFX_REGION for RemoteFX codec image /// </summary> /// <param name="rfxRegion"></param> public void SetRemoteFXRegion(TS_RFX_REGION rfxRegion) { remoteFXContext.Region = rfxRegion; }