unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; const WM_DATA=WM_USER+; type PShareMem=^TShareMem; TShareMem=record Data:..] of char; end; TForm1 = class(TForm) Button1: TButton…