-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMBWINFO.PAS
102 lines (91 loc) · 2.45 KB
/
MBWINFO.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
unit Mbwinfo;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls;
type
TInfoSomary = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Disque: TListBox;
Label7: TLabel;
Divers: TListBox;
Label8: TLabel;
NameComputer: TLabel;
CorrecteSommaire: TButton;
ConstructorBIOS: TLabel;
CPUName: TLabel;
MPUName: TLabel;
VideoName: TLabel;
MouseName: TLabel;
procedure CorrecteSommaireClick(Sender: TObject);
private
{ Déclarations private }
public
{ Déclarations public }
Procedure Run;
end;
var
InfoSomary: TInfoSomary;
implementation
Uses Adele,Systex,Systems;
{$R *.DFM}
{$H-}
Procedure TInfoSomary.Run;Var S,SM:String;Begin
NameComputer.Caption:='Inconnu';
ConstructorBIOS.Caption:='Inconnu';
Case(CPU)of
cpuV20:CPUName.Caption:='NEC V20';
cpuV30:CPUName.Caption:='NEC V30';
cpu8088:CPUName.Caption:='8088';
cpu8086:CPUName.Caption:='8086';
cpu80188:CPUName.Caption:='80188';
cpu80186:CPUName.Caption:='80186';
cpu80286:CPUName.Caption:='80286';
cpui386:CPUName.Caption:='80386';
cpui486:CPUName.Caption:='80486';
cpuCyrix5x86:CPUName.Caption:='Cyrix 5x86';
cpuCyrix6x86:CPUName.Caption:='Cyrix 6x86';
cpuPentium:CPUName.Caption:='Pentium';
cpuPentiumMMX:CPUName.Caption:='Pentium-MMX';
cpuPentiumII:CPUNAme.Caption:='Pentium II';
Else CPUName.Caption:='Inconnu';
End;
MPUName.Caption:='Inconnu';
VideoName.Caption:='Inconnu';
MouseName.Caption:='Inconnu';
Case(KbdModel)of
kbPC:S:='PC original';
kbXT:S:='XT original';
kbAT:S:='AT de 84 touches';
kbConterm:S:='Conterm Max';
kbMF:S:='MF de 101 à 105 touches';
End;
Divers.Items.Add('Type de clavier: '+S);
S:='Windows ';SM:='';
If(WinLoVer=3)and(WinHiVer=95)Then AddStr(S,'95/98')Else
If(WinLoVer=4)and(WinHiVer=0)Then AddStr(S,'95')Else
If(WinLoVer=4)and(WinHiVer=10)Then AddStr(S,'98')
Else
Begin
AddStr(S,IntToStr(WinLoVer)+'.'+IntToStr(WinHiVer));
Case(Win)of
winReal:AddStr(SM,'Mode de fonctionnement: Réel');
winStandard:AddStr(SM,'Mode de fonctionnement: Standard');
winEnhanced:AddStr(SM,'Mode de fonctionnement: Étendue 386');
End;
End;
Divers.Items.Add('Système d''exploitation: '+S);
If SM<>''Then Divers.Items.Add(SM);
ShowModal;
End;
procedure TInfoSomary.CorrecteSommaireClick(Sender: TObject);
begin
Close;
end;
end.