private TS_SURFCMDS_CAPABILITYSET ParseCapsTypeSurfaceCommands(byte[] data)
{
TS_SURFCMDS_CAPABILITYSET set = RdpbcgrUtility.ToStruct<TS_SURFCMDS_CAPABILITYSET>(data);
// Check if data length is consistent with the decoded struct length
VerifyDataLength(data.Length, Marshal.SizeOf(set), ConstValue.ERROR_MESSAGE_DATA_LENGTH_INCONSISTENT);
return set;
}