private static byte[] EncodeSuppressData(TS_SUPPRESS_OUTPUT_PDU suppressOutputPduData)
{
List<byte> suppressBuffer = new List<byte>();
RdpbcgrEncoder.EncodeStructure(suppressBuffer, suppressOutputPduData.shareDataHeader);
RdpbcgrEncoder.EncodeStructure(suppressBuffer, (byte)suppressOutputPduData.allowDisplayUpdates);
RdpbcgrEncoder.EncodeBytes(suppressBuffer, suppressOutputPduData.pad3Octects);
if (suppressOutputPduData.allowDisplayUpdates == AllowDisplayUpdates_SUPPRESS_OUTPUT.ALLOW_DISPLAY_UPDATES)
{
RdpbcgrEncoder.EncodeStructure(suppressBuffer, suppressOutputPduData.desktopRect);
}
return suppressBuffer.ToArray();
}