public override bool Decode(PduMarshaler marshaler) { try { if (!base.Decode(marshaler)) { return false; } protocolVersion = (RDPINPUT_SC_READY_ProtocolVersion)marshaler.ReadUInt32(); return true; } catch { return false; } }
/// <summary> /// Method to create a RDPINPUT_SC_READY_PDU. /// </summary> /// <param name="eventId">A 16-bit unsigned integer that identifies the type of the input event PDU.</param> /// <param name="pduLength">A 32-bit unsigned integer that specifies the length of the input event PDU in bytes.</param> /// <param name="protocolVersion">A 32-bit unsigned integer that specifies the input protocol version.</param> /// <returns>The created RDPINPUT_SC_READY_PDU.</returns> public RDPINPUT_SC_READY_PDU CreateRdpInputScReadyPdu(EventId_Values eventId = EventId_Values.EVENTID_SC_READY, uint pduLength = 10, RDPINPUT_SC_READY_ProtocolVersion protocolVersion = RDPINPUT_SC_READY_ProtocolVersion.RDPINPUT_PROTOCOL_V100) { RDPINPUT_SC_READY_PDU pdu = new RDPINPUT_SC_READY_PDU(); pdu.header.eventId = eventId; pdu.header.pduLength = pduLength; pdu.protocolVersion = protocolVersion; return(pdu); }