public static bool SetSelectionSize(RichTextBox control, int size) { Struct23 struct2; struct2 = new Struct23 { int_0 = Marshal.SizeOf(struct2), uint_0 = 0x80000000, int_1 = size * 20 }; IntPtr ptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(struct2)); Marshal.StructureToPtr(struct2, ptr, false); return(SendMessage(control.Handle, 0x444, 1, ptr) == 0); }
private bool method_4(uint uint_18, uint uint_19) { Struct23 struct2; struct2 = new Struct23 { int_0 = Marshal.SizeOf(struct2), uint_0 = uint_18, jFkdGycaqt = uint_19 }; IntPtr ptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(struct2)); Marshal.StructureToPtr(struct2, ptr, false); return(SendMessage(this.richTextBox_0.Handle, 0x444, 1, ptr) == 0); }
public static bool SetSelectionFont(RichTextBox control, string face) { Struct23 struct2; struct2 = new Struct23 { int_0 = Marshal.SizeOf(struct2), char_0 = new char[0x20], uint_0 = 0x20000000 }; face.CopyTo(0, struct2.char_0, 0, Math.Min(0x1f, face.Length)); IntPtr ptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(struct2)); Marshal.StructureToPtr(struct2, ptr, false); return(SendMessage(control.Handle, 0x444, 1, ptr) == 0); }