-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunction.h
executable file
·139 lines (122 loc) · 4.89 KB
/
function.h
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Functions in job control.cpp
void JobReset();
void JobStart();
bool JobContinue();
void JobStop();
void JobDone();
// Functions in job get.cpp
string JobTasks();
displayitem JobDisplay();
// Functions in job set.cpp
string JobTask(read r);
void JobFileCount();
void JobFileError(read r);
void JobFolderCount();
void JobFolderError(read r);
void JobCompareCount();
void JobCompareError(read r);
void JobError(read r);
// Functions in platform disk.cpp
bool DiskFolder(read path, bool create, bool write);
bool DiskFolderCheck(read path, bool create);
bool DiskDeleteFolder(read path);
bool DiskDeleteFile(read path);
bool DiskMakeFolder(read path);
bool DiskCopyFile(read source, read destination);
bool DiskIsFolder(read path);
bool DiskIsFile(read path);
bool DiskSameFile(read path1, finditem *f2);
bool DiskCompareFile(read path1, read path2);
bool DiskHashFile(read path, string *hash);
// Functions in platform log.cpp
string LogPath(read name);
HANDLE LogOpen(read path, read title);
bool LogAppend(HANDLE file, read r);
bool LogClose(HANDLE file);
// Functions in platform number.cpp
big Combine(DWORD high, DWORD low);
DWORD High(big b);
DWORD Low(big b);
// Functions in platform paint.cpp
COLORREF ColorMix(COLORREF color1, int amount1, COLORREF color2, int amount2);
brushitem CreateBrush(COLORREF color);
HFONT CreateFont(read face, int points);
void PaintMessage(HWND window);
void PaintFill(deviceitem *device, sizeitem size, HBRUSH brush);
void PaintBorder(deviceitem *device, sizeitem size, HBRUSH brush);
void PaintText(deviceitem *device, read r, sizeitem size);
// Functions in platform registry.cpp
string RegistryRead(HKEY root, read path, read name);
void RegistryWrite(HKEY root, read path, read name, read value);
// Functions in platform string.cpp
string make(read r1 = L"", read r2 = L"", read r3 = L"", read r4 = L"", read r5 = L"", read r6 = L"", read r7 = L"", read r8 = L"", read r9 = L"");
string numerals(int number, int width = 0);
bool is(read r);
bool isblank(read r);
bool starts(read r, read t, matching m = Different);
bool trails(read r, read t, matching m = Different);
bool has(read r, read t, matching m = Different);
int find(read r, read t, direction d = Forward, matching m = Different);
string before(read r, read t, direction d = Forward, matching m = Different);
string after(read r, read t, direction d = Forward, matching m = Different);
void split(read r, read t, string *b, string *a, direction d = Forward, matching m = Different);
string clip(read r, int startindex, int characters = -1);
string off(read r, read t, direction d = Forward, matching m = Different);
string trim(read r, read t1 = L"", read t2 = L"", read t3 = L"");
string saynumber(int number, read name);
string insertcommas(read r);
string saytime(DWORD time);
string saydate(read separator);
string sayguid();
// Functions in platform window.cpp
void Report(read r);
void BeginThread(LPVOID function);
void WindowTextSet(HWND window, read r);
string WindowTextGet(HWND window);
void EditAppend(HWND window, read r);
void EditScroll(HWND window);
HWND WindowCreateEdit(bool scrollbars, bool capacity);
HWND WindowCreateButton(read r);
HWND WindowCreate(read name, read text, DWORD style, int size, HWND parent, HMENU menu);
void WindowSize(HWND window, sizeitem size);
void WindowEdit(HWND window, boolean edit);
HMENU MenuLoad(read name, int index);
UINT MenuShow(HMENU menu, int x, int y);
string DialogBrowse(read display);
// Functions in task big.cpp
DWORD WINAPI Tasks();
void TaskHash(read path);
void TaskDelete(read path);
void TaskCopy(read source, read destination);
void TaskCompare(read source, read destination);
void TaskUpdate(read source, read destination, bool compare);
// Functions in task small.cpp
void TaskHashFolder(read root, read path, HANDLE log);
void TaskHashFile(read root, read path, HANDLE log);
void TaskDeleteFolder(read path);
void TaskDeleteFile(read path);
void TaskCopyFolder(read source, read destination, bool compare);
void TaskMakeFolder(read path);
void TaskCopyFile(read source, read destination, bool compare);
void TaskCompareFolder(read source, read destination);
void TaskCompareFile(read source, read destination);
void TaskUpdateClear(read source, read destination);
void TaskUpdateFill(read source, read destination, bool compare);
// Functions in user button.cpp
void ButtonClear();
void ButtonHash();
void ButtonDelete();
void ButtonCopy();
void ButtonCompare();
void ButtonUpdate();
void ButtonUpdateCompare();
// Functions in user paint.cpp
void PaintCreate();
void Paint();
// Functions in user update.cpp
void WindowUpdate();
// Functions in user window.cpp
int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, PSTR command, int show);
LRESULT CALLBACK MainWinProc(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
// Functions in (test).cpp
void Test();