diff --git a/src/BuildUtil/UnixBuildSoftwares.cs b/src/BuildUtil/UnixBuildSoftwares.cs index f11063c3..75e259f4 100644 --- a/src/BuildUtil/UnixBuildSoftwares.cs +++ b/src/BuildUtil/UnixBuildSoftwares.cs @@ -143,6 +143,7 @@ namespace BuildUtil @"bin\BuiltHamcoreFiles", @"bin\hamcore", "Cedar", + "Ham", "Mayaqua", "Neo", "vpnbridge", diff --git a/src/Cedar/WinUi.c b/src/Cedar/WinUi.c index 5ba696fc..ff84e76f 100644 --- a/src/Cedar/WinUi.c +++ b/src/Cedar/WinUi.c @@ -1964,6 +1964,9 @@ void RegistWindowsFirewallAllEx(char *dir) MsRegistWindowsFirewallEx2(CEDAR_CUI_STR, "vpncmd.exe", dir); MsRegistWindowsFirewallEx2(CEDAR_CUI_STR, "vpncmd_x64.exe", dir); + + MsRegistWindowsFirewallEx2(CEDAR_PRODUCT_STR, "ham.exe", dir); + MsRegistWindowsFirewallEx2(CEDAR_PRODUCT_STR, "ham_x64.exe", dir); } // Check whether the notification service is already running diff --git a/src/Ham/Cert.ico b/src/Ham/Cert.ico new file mode 100644 index 00000000..ec86d51a Binary files /dev/null and b/src/Ham/Cert.ico differ diff --git a/src/Ham/Ham.c b/src/Ham/Ham.c new file mode 100644 index 00000000..faf24a80 --- /dev/null +++ b/src/Ham/Ham.c @@ -0,0 +1,7 @@ +#include + +int main() +{ + printf("Hello, VPN Hamster !!\n"); + return 0; +} diff --git a/src/Ham/Ham.h b/src/Ham/Ham.h new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/src/Ham/Ham.h @@ -0,0 +1 @@ + diff --git a/src/Ham/Ham.rc b/src/Ham/Ham.rc new file mode 100644 index 00000000..f39cbd95 --- /dev/null +++ b/src/Ham/Ham.rc @@ -0,0 +1,72 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Japanese resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_JPN) +#ifdef _WIN32 +LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT +#pragma code_page(932) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON2 ICON "NIC.ico" +#endif // Japanese resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/src/Ham/Ham.vcproj b/src/Ham/Ham.vcproj new file mode 100644 index 00000000..5400b8c6 --- /dev/null +++ b/src/Ham/Ham.vcproj @@ -0,0 +1,475 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Ham/Mon.c b/src/Ham/Mon.c new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/src/Ham/Mon.c @@ -0,0 +1 @@ + diff --git a/src/Ham/Mon.h b/src/Ham/Mon.h new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/src/Ham/Mon.h @@ -0,0 +1 @@ + diff --git a/src/Ham/NIC.ico b/src/Ham/NIC.ico new file mode 100644 index 00000000..0310b265 Binary files /dev/null and b/src/Ham/NIC.ico differ diff --git a/src/Ham/Scan.c b/src/Ham/Scan.c new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/src/Ham/Scan.c @@ -0,0 +1 @@ + diff --git a/src/Ham/Scan.h b/src/Ham/Scan.h new file mode 100644 index 00000000..d3f5a12f --- /dev/null +++ b/src/Ham/Scan.h @@ -0,0 +1 @@ + diff --git a/src/Ham/resource.h b/src/Ham/resource.h new file mode 100644 index 00000000..2f5bec73 --- /dev/null +++ b/src/Ham/resource.h @@ -0,0 +1,19 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Ham.rc +// +#define IDR_TEST1 101 +#define IDI_ICON1 102 +#define IDI_CERT 102 +#define IDI_ICON2 103 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 104 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/src/SEVPN.sln b/src/SEVPN.sln index 78ffc9da..5435d06a 100644 --- a/src/SEVPN.sln +++ b/src/SEVPN.sln @@ -90,6 +90,13 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cedar", "Cedar\Cedar.vcproj {384815C3-333C-4CEC-9DCD-B6AB2602EBB9} = {384815C3-333C-4CEC-9DCD-B6AB2602EBB9} EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ham", "Ham\Ham.vcproj", "{1ED5782B-1734-4FC6-AA9E-F7181CDBA8A7}" + ProjectSection(ProjectDependencies) = postProject + {DB2A0C4F-D685-41DD-91BA-06E9EEA381CF} = {DB2A0C4F-D685-41DD-91BA-06E9EEA381CF} + {2928D768-DEC3-40D3-8E51-26E364497C9B} = {2928D768-DEC3-40D3-8E51-26E364497C9B} + {384815C3-333C-4CEC-9DCD-B6AB2602EBB9} = {384815C3-333C-4CEC-9DCD-B6AB2602EBB9} + EndProjectSection +EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vpncmd", "vpncmd\vpncmd.vcproj", "{83438AC3-5329-4337-89BC-5B69EBAE4B6E}" ProjectSection(ProjectDependencies) = postProject {2928D768-DEC3-40D3-8E51-26E364497C9B} = {2928D768-DEC3-40D3-8E51-26E364497C9B}