/// <summary>
 /// Encode a RECT.
 /// </summary>
 private void EncodeRect(RECT rct, PduMarshaler marshaler)
 {
     marshaler.WriteInt32(rct.left);
     marshaler.WriteInt32(rct.top);
     marshaler.WriteInt32(rct.right);
     marshaler.WriteInt32(rct.bottom);
 }
 /// <summary>
 /// Encode this PDU to the PduMarshaler.
 /// </summary>
 /// <param name="marshaler">This is used to encode the fields of this PDU.</param>
 public void Encode(PduMarshaler marshaler)
 {
     marshaler.WriteUInt32((uint)Flags);
     marshaler.WriteInt32(Left);
     marshaler.WriteInt32(Top);
     marshaler.WriteUInt32(Width);
     marshaler.WriteUInt32(Height);
     marshaler.WriteUInt32(PhysicalWidth);
     marshaler.WriteUInt32(PhysicalHeight);
     marshaler.WriteUInt32((uint)Orientation);
     marshaler.WriteUInt32(DesktopScaleFactor);
     marshaler.WriteUInt32(DeviceScaleFactor);
 }