-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
main.hpp
57 lines (41 loc) · 1.02 KB
/
main.hpp
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
// chrlauncher
// Copyright (c) 2015-2018 Henry++
#ifndef __MAIN_H__
#define __MAIN_H__
#include <windows.h>
#include <commctrl.h>
#include "resource.hpp"
#include "app.hpp"
// config
#define WM_TRAYICON WM_APP + 1
#define UID 2008
#define LANG_MENU 0
// libs
#pragma comment(lib, "ntdll.lib")
#pragma comment(lib, "version.lib")
struct BROWSER_INFORMATION
{
bool is_autodownload = false;
bool is_bringtofront = false;
bool is_forcecheck = false;
bool is_waitdownloadend = false;
bool is_opennewwindow = false;
bool is_ischecked = false;
bool is_isdownloaded = false;
bool is_isinstalled = false;
time_t timestamp = 0;
INT check_period = 0;
UINT architecture = 0;
WCHAR current_version[32] = {0};
WCHAR new_version[32] = {0};
WCHAR name[64] = {0};
WCHAR name_full[64] = {0};
WCHAR type[64] = {0};
WCHAR cache_path[MAX_PATH] = {0};
WCHAR binary_dir[MAX_PATH] = {0};
WCHAR binary_path[MAX_PATH] = {0};
WCHAR download_url[512] = {0};
WCHAR urls[1024] = {0};
WCHAR args[2048] = {0};
};
#endif // __MAIN_H__