aboutsummaryrefslogtreecommitdiffstats
path: root/tool/PGListUtil/src/PGListUtil/WindowMain.h
diff options
context:
space:
mode:
authoru <u@noreply.codeberg.org>2020-11-11 03:32:05 +0100
committeru <u@noreply.codeberg.org>2020-11-11 03:32:05 +0100
commit359887b8afb8892f01f72a05ff63a88a6ffa9f4f (patch)
tree3e29683931748021dbcdfcf2d8e88541b221e082 /tool/PGListUtil/src/PGListUtil/WindowMain.h
parentab384049a1eda8c7676ef93771e0e040f08c880f (diff)
parentb346040be73f9e28998fde6fc27467ff24c0abad (diff)
downloadcloudflare-tor-359887b8afb8892f01f72a05ff63a88a6ffa9f4f.tar.lz
cloudflare-tor-359887b8afb8892f01f72a05ff63a88a6ffa9f4f.tar.xz
cloudflare-tor-359887b8afb8892f01f72a05ff63a88a6ffa9f4f.zip
🙆
Diffstat (limited to 'tool/PGListUtil/src/PGListUtil/WindowMain.h')
-rw-r--r--tool/PGListUtil/src/PGListUtil/WindowMain.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tool/PGListUtil/src/PGListUtil/WindowMain.h b/tool/PGListUtil/src/PGListUtil/WindowMain.h
new file mode 100644
index 00000000..d02c3b7f
--- /dev/null
+++ b/tool/PGListUtil/src/PGListUtil/WindowMain.h
@@ -0,0 +1,39 @@
+#ifndef WINDOWMAIN_H
+#define WINDOWMAIN_H
+
+#include <windows.h>
+
+#define STRLEN_TEMP 1024
+#define STRLEN_PATH 1024
+#define STRLEN_EXPFILT 128
+#define STRLEN_RESULT 64
+
+namespace WindowMain {
+
+struct COption {
+ bool sortCap;
+ bool sortIp;
+ bool delDupIp;
+ bool saveAppend;
+ bool filtAnd;
+ bool filtDel;
+};
+
+BOOL Init(HINSTANCE hInstance);
+
+BOOL CALLBACK DlgProcMain(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp);
+
+void Dlg_Executing(HWND hDlg, BOOL bExec);
+int ListView_Infile_GetItemCount(HWND hDlg);
+BOOL ListView_Infile_GetItemText(HWND hDlg, int nItem, LPTSTR tsPath);
+BOOL Edit_Outfile_GetText(HWND hDlg, LPTSTR tsPath);
+BOOL Edit_Filter_GetText(HWND hDlg, LPTSTR tsText);
+
+BOOL GetOption(HWND hDlg, COption *option);
+
+void Edit_Result_SetText(HWND hDlg, LPCTSTR tsText);
+void Edit_Result_AppendText(HWND hDlg, LPCTSTR tsText);
+
+}
+
+#endif // WINDOWMAIN_H