-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.pas
102 lines (49 loc) · 1.31 KB
/
variables.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 variables;
interface
uses Com_32m, classes,StdCtrls;
const PROGRAMVERSION='25.11.2021';//
//const PROGRAM_INI='SimpleOSDPTerminal.ini';
const C_SECTION='Software\Microsoft\Windows\CurrentVersion\Policies\System\';
const C_KEY='DisableTaskMgr';
const TASKMANAGER_DISABLE=FALSE;
const TASKMANAGER_ENABLE=TRUE;
const BIGSTAND_NAME='OSDP Client (Open Supervised Device Protocol)';
// íå ñîõðàíÿòü â ÁÄ
//const DONT_SAVE_DATA=true;
const CAPTION_BUTTON_MODE_AP = 'Ðåæèì ðàáîòû ñ AP';
const CAPTION_BUTTON_MODE_KEY = 'Ðåæèì ðàáîòû ñ KEY';
const AUTORUN_SECTION='SOFTWARE\Microsoft\Windows\CurrentVersion\Run\';
const AUTORUN_KEY='OSDPClient';
type
TComSettings=record
Port :string;
BaudRate :TBaudRate;
DataBits :TDataBits;
Parity :TParity;
StopBits :TStopBits;
end;
TTxRx = record
tx,rx:longword;
end;
TStat = record
ir,hr,di,co:TTxRx;
end;
TAlarm = record
online:boolean;
warning:boolean;
error:boolean;
warning_mask:word;
error_mask:word;
status_mask:word;
duty:boolean;
//memo:Tstrings;
memo:TMEMO;
status:string;
end;
//type AOFB=Array of byte;
var
Port1Settings:TComSettings;
need_terminate:boolean=false;
Number_Page:byte=0;
implementation
end.