| 1 | program lddesktop; | 
|---|
| 2 |  | 
|---|
| 3 | uses | 
|---|
| 4 | Vcl.Forms, | 
|---|
| 5 | UFormMain in 'UFormMain.pas' {FormScreen}, | 
|---|
| 6 | Driver.VideoVCL in 'Drivers\Driver.VideoVCL.pas', | 
|---|
| 7 | Driver.SystemVCL in 'Drivers\Driver.SystemVCL.pas', | 
|---|
| 8 | Driver.KeyboardVCL in 'Drivers\Driver.KeyboardVCL.pas', | 
|---|
| 9 | Driver.MouseVCL in 'Drivers\Driver.MouseVCL.pas', | 
|---|
| 10 | Xvcl.Classes in 'Xvcl\Xvcl.Classes.pas', | 
|---|
| 11 | Xvcl.Controls in 'Xvcl\Xvcl.Controls.pas', | 
|---|
| 12 | Xvcl.Forms in 'Xvcl\Xvcl.Forms.pas', | 
|---|
| 13 | Xvcl.Generics in 'Xvcl\Xvcl.Generics.pas', | 
|---|
| 14 | Xvcl.Graphics in 'Xvcl\Xvcl.Graphics.pas', | 
|---|
| 15 | LDOS.Kernel in 'System\LDOS.Kernel.pas', | 
|---|
| 16 | LDOS.Task in 'System\LDOS.Task.pas', | 
|---|
| 17 | TestApplication in 'Applications\TestApplication.pas', | 
|---|
| 18 | UDesktop in 'Applications\UDesktop.pas', | 
|---|
| 19 | LDOS.Mem in 'System\LDOS.Mem.pas'; | 
|---|
| 20 |  | 
|---|
| 21 | {$R *.res} | 
|---|
| 22 |  | 
|---|
| 23 | var | 
|---|
| 24 | Kernel: TKernel; | 
|---|
| 25 | DriverSystem: TDriver; | 
|---|
| 26 | DriverVideo: TDriver; | 
|---|
| 27 | DriverKeyboard: TDriver; | 
|---|
| 28 | DriverMouse: TDriver; | 
|---|
| 29 | DesktopApp: TDesktopApp; | 
|---|
| 30 | begin | 
|---|
| 31 | ReportMemoryLeaksOnShutdown := DebugHook <> 0; | 
|---|
| 32 | Kernel := TKernel.Create; | 
|---|
| 33 | DriverSystem := TDriverSystemVCL.Create; | 
|---|
| 34 | DriverSystem.Kernel := Kernel; | 
|---|
| 35 | Kernel.Drivers.Add(DriverSystem); | 
|---|
| 36 | DriverVideo := TDriverVideoVCL.Create; | 
|---|
| 37 | DriverVideo.Kernel := Kernel; | 
|---|
| 38 | Kernel.Drivers.Add(DriverVideo); | 
|---|
| 39 | DriverKeyboard := TDriverKeyboardVCL.Create; | 
|---|
| 40 | DriverKeyboard.Kernel := Kernel; | 
|---|
| 41 | Kernel.Drivers.Add(DriverKeyboard); | 
|---|
| 42 | DriverMouse := TDriverMouseVCL.Create; | 
|---|
| 43 | DriverMouse.Kernel := Kernel; | 
|---|
| 44 | Kernel.Drivers.Add(DriverMouse); | 
|---|
| 45 | DesktopApp := TDesktopApp.Create; | 
|---|
| 46 | DesktopApp.Screen := Kernel.Screen; | 
|---|
| 47 | Kernel.StartOnBoot.Add(DesktopApp); | 
|---|
| 48 | Kernel.Boot; | 
|---|
| 49 | Kernel.Destroy; | 
|---|
| 50 | end. | 
|---|