1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-19 17:59:19 +03:00

v4.03-9408-rtm

This commit is contained in:
dnobori
2014-01-04 22:00:08 +09:00
parent d433e567a5
commit 749497dde0
986 changed files with 487216 additions and 339 deletions

BIN
src/vpnweb/VPN.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
src/vpnweb/VPNSvr.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

View File

@ -0,0 +1,4 @@
// VpnWebControl.cpp : CVpnWebControl
#include "stdafx.h"
#include "VpnWebControl.h"

382
src/vpnweb/VpnWebControl.h Normal file
View File

@ -0,0 +1,382 @@
#pragma once
#include "resource.h"
#include <atlctl.h>
#include "vpnweb.h"
#include "vpnwebdlg.h"
#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
#error "DCOM is not supported."
#endif
// CVpnWebControl
class ATL_NO_VTABLE CVpnWebControl :
public CComObjectRootEx<CComSingleThreadModel>,
public IDispatchImpl<IVpnWebControl, &IID_IVpnWebControl, &LIBID_vpnwebLib, /*wMajor =*/ 1, /*wMinor =*/ 0>,
public IPersistStreamInitImpl<CVpnWebControl>,
public IOleControlImpl<CVpnWebControl>,
public IOleObjectImpl<CVpnWebControl>,
public IOleInPlaceActiveObjectImpl<CVpnWebControl>,
public IViewObjectExImpl<CVpnWebControl>,
public IOleInPlaceObjectWindowlessImpl<CVpnWebControl>,
public ISupportErrorInfo,
public IPersistStorageImpl<CVpnWebControl>,
public IPersistPropertyBagImpl<CVpnWebControl>,
public ISpecifyPropertyPagesImpl<CVpnWebControl>,
public IQuickActivateImpl<CVpnWebControl>,
public IObjectSafetyImpl<CVpnWebControl, INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA>,
#ifndef _WIN32_WCE
public IDataObjectImpl<CVpnWebControl>,
#endif
public IProvideClassInfo2Impl<&CLSID_VpnWebControl, NULL, &LIBID_vpnwebLib>,
#ifdef _WIN32_WCE
public IObjectSafetyImpl<CVpnWebControl, INTERFACESAFE_FOR_UNTRUSTED_CALLER>,
#endif
public CComCoClass<CVpnWebControl, &CLSID_VpnWebControl>,
public CComControl<CVpnWebControl>
{
public:
HWND hDlg;
CVpnWebControl()
{
hDlg = NULL;
SIZE dlgSize;
GetVpnWebDlgSize(&dlgSize);
m_bWindowOnly = TRUE;
m_bAutoSize = TRUE;
m_bRecomposeOnResize = TRUE;
m_bResizeNatural = TRUE;
setSize(dlgSize.cx, dlgSize.cy);
}
DECLARE_OLEMISC_STATUS(OLEMISC_RECOMPOSEONRESIZE |
OLEMISC_CANTLINKINSIDE |
OLEMISC_INSIDEOUT |
OLEMISC_ACTIVATEWHENVISIBLE |
OLEMISC_SETCLIENTSITEFIRST
)
DECLARE_REGISTRY_RESOURCEID(IDR_VPNWEBCONTROL)
BEGIN_COM_MAP(CVpnWebControl)
COM_INTERFACE_ENTRY(IVpnWebControl)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IViewObjectEx)
COM_INTERFACE_ENTRY(IViewObject2)
COM_INTERFACE_ENTRY(IViewObject)
COM_INTERFACE_ENTRY(IOleInPlaceObjectWindowless)
COM_INTERFACE_ENTRY(IOleInPlaceObject)
COM_INTERFACE_ENTRY2(IOleWindow, IOleInPlaceObjectWindowless)
COM_INTERFACE_ENTRY(IOleInPlaceActiveObject)
COM_INTERFACE_ENTRY(IOleControl)
COM_INTERFACE_ENTRY(IOleObject)
COM_INTERFACE_ENTRY(IPersistStreamInit)
COM_INTERFACE_ENTRY(IPersistPropertyBag)
COM_INTERFACE_ENTRY2(IPersist, IPersistStreamInit)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
COM_INTERFACE_ENTRY(ISpecifyPropertyPages)
COM_INTERFACE_ENTRY(IQuickActivate)
COM_INTERFACE_ENTRY(IPersistStorage)
COM_INTERFACE_ENTRY(IObjectSafety)
#ifndef _WIN32_WCE
COM_INTERFACE_ENTRY(IDataObject)
#endif
COM_INTERFACE_ENTRY(IProvideClassInfo)
COM_INTERFACE_ENTRY(IProvideClassInfo2)
#ifdef _WIN32_WCE
COM_INTERFACE_ENTRY_IID(IID_IObjectSafety, IObjectSafety)
#endif
END_COM_MAP()
BEGIN_PROP_MAP(CVpnWebControl)
//PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
//PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
PROP_ENTRY("InstallerExeUrl", 1, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("InstallerInfUrl", 2, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("SettingUrl", 3, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("VpnServerManagerMode", 4, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("VpnServerHostname", 5, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("VpnServerHubName", 6, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("VpnServerPassword", 7, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("LanguageID", 8, CVpnWebControl::GetObjectCLSID())
PROP_ENTRY("LanguageID", 9, CVpnWebControl::GetObjectCLSID())
END_PROP_MAP()
BEGIN_MSG_MAP(CVpnWebControl)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
CHAIN_MSG_MAP(CComControl<CVpnWebControl>)
DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid)
{
static const IID* arr[] =
{
&IID_IVpnWebControl,
};
for (int i=0; i<sizeof(arr)/sizeof(arr[0]); i++)
{
if (InlineIsEqualGUID(*arr[i], riid))
return S_OK;
}
return S_FALSE;
}
/*
// IObjectSafety
STDMETHOD(SetInterfaceSafetyOptions)(REFIID riid, DWORD dwSupportedOptions, DWORD dwEnabledOptions)
{
if (riid == IID_IPersistPropertyBag)
{
if (dwEnabledOptions != INTERFACESAFE_FOR_UNTRUSTED_CALLER)
{
return E_FAIL;
}
return S_OK;
}
return IObjectSafetyImpl<CVpnWebControl,
INTERFACESAFE_FOR_UNTRUSTED_CALLER>::SetInterfaceSafetyOptions(riid,
dwSupportedOptions, dwEnabledOptions);
}*/
// IViewObjectEx
DECLARE_VIEW_STATUS(0)
void setSize(UINT width, UINT height)
{
SIZEL src;
ZeroMemory(&src, sizeof(src));
src.cx = width;
src.cy = height;
AtlPixelToHiMetric(&src, &m_sizeNatural);
AtlPixelToHiMetric(&src, &m_sizeExtent);
}
private:
CComBSTR m_installer_exe_url, m_installer_inf_url, m_setting_url,
m_vpnserver_manager_mode, m_vpnserver_hostname, m_vpnserver_hubname,
m_vpnserver_password;
CComBSTR m_language_id;
// IVpnWebControl
public:
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
RECT rc;
GetWindowRect(&rc);
rc.right -= rc.left;
rc.bottom -= rc.top;
rc.top = rc.left = 0;
VPNWEBDLG_INIT init;
ZeroMemory(&init, sizeof(init));
init.hControlWnd = m_hWnd;
CW2A installer_exe_url(m_installer_exe_url);
CW2A installer_inf_url(m_installer_inf_url);
CW2A setting_url(m_setting_url);
CW2A vpnserver_manager_mode(m_vpnserver_manager_mode);
CW2A vpnserver_hostname(m_vpnserver_hostname);
CW2A vpnserver_hubname(m_vpnserver_hubname);
CW2A vpnserver_password(m_vpnserver_password);
CW2A language_id(m_language_id);
if (installer_exe_url != NULL)
{
if (lstrlen(installer_exe_url) <= 256)
{
lstrcpy(init.InstallerExeUrl, installer_exe_url);
}
}
if (installer_inf_url != NULL)
{
if (lstrlen(installer_inf_url) <= 256)
{
lstrcpy(init.InstallerInfUrl, installer_inf_url);
}
}
if (setting_url != NULL)
{
if (lstrlen(setting_url) <= 256)
{
lstrcpy(init.SettingUrl, setting_url);
}
}
if (vpnserver_manager_mode != NULL)
{
init.VpnServerManagerMode = (BOOL)strtod(vpnserver_manager_mode, NULL);
}
if( m_language_id!=NULL ){
if (lstrlen(language_id) <= 32)
{
lstrcpy(init.LanguageId, language_id);
}
}
if (init.VpnServerManagerMode)
{
if (vpnserver_hostname != NULL)
{
if (lstrlen(vpnserver_hostname) <= 256)
{
lstrcpy(init.VpnServerHostname, vpnserver_hostname);
}
}
if (vpnserver_hubname != NULL)
{
if (lstrlen(vpnserver_hubname) <= 256)
{
lstrcpy(init.VpnServerHubName, vpnserver_hubname);
}
}
if (vpnserver_password != NULL)
{
if (lstrlen(vpnserver_password) <= 256)
{
lstrcpy(init.VpnServerPassword, vpnserver_password);
}
}
}
hDlg = InitVpnWebDlg(&init);
return 0;
}
HRESULT OnDraw(ATL_DRAWINFO& di)
{
return S_OK;
}
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
FreeVpnWebDlg();
}
STDMETHODIMP get_InstallerExeUrl(BSTR* pVal)
{
*pVal = m_installer_exe_url.Copy();
return S_OK;
}
STDMETHODIMP put_InstallerExeUrl(BSTR newVal)
{
m_installer_exe_url = newVal;
return S_OK;
}
STDMETHODIMP get_InstallerInfUrl(BSTR* pVal)
{
*pVal = m_installer_inf_url.Copy();
return S_OK;
}
STDMETHODIMP put_InstallerInfUrl(BSTR newVal)
{
m_installer_inf_url = newVal;
return S_OK;
}
STDMETHODIMP get_SettingUrl(BSTR* pVal)
{
*pVal = m_setting_url.Copy();
return S_OK;
}
STDMETHODIMP put_SettingUrl(BSTR newVal)
{
m_setting_url = newVal;
return S_OK;
}
STDMETHODIMP get_VpnServerManagerMode(BSTR* pVal)
{
*pVal = m_vpnserver_manager_mode.Copy();
return S_OK;
}
STDMETHODIMP put_VpnServerManagerMode(BSTR newVal)
{
m_vpnserver_manager_mode = newVal;
return S_OK;
}
STDMETHODIMP get_VpnServerHostname(BSTR* pVal)
{
*pVal = m_vpnserver_hostname.Copy();
return S_OK;
}
STDMETHODIMP put_VpnServerHostname(BSTR newVal)
{
m_vpnserver_hostname = newVal;
return S_OK;
}
STDMETHODIMP get_VpnServerHubName(BSTR* pVal)
{
*pVal = m_vpnserver_hubname.Copy();
return S_OK;
}
STDMETHODIMP put_VpnServerHubName(BSTR newVal)
{
m_vpnserver_hubname = newVal;
return S_OK;
}
STDMETHODIMP get_VpnServerPassword(BSTR* pVal)
{
*pVal = m_vpnserver_password.Copy();
return S_OK;
}
STDMETHODIMP put_VpnServerPassword(BSTR newVal)
{
m_vpnserver_password = newVal;
return S_OK;
}
STDMETHODIMP get_LanguageID(BSTR* pVal)
{
*pVal = m_language_id.Copy();
return S_OK;
}
STDMETHODIMP put_LanguageID(BSTR newVal)
{
m_language_id = newVal;
return S_OK;
}
};
OBJECT_ENTRY_AUTO(__uuidof(VpnWebControl), CVpnWebControl)

View File

@ -0,0 +1,34 @@
HKCR
{
vpnweb.VpnWebControl.1 = s 'VpnWebControl Class'
{
CLSID = s '{64F1A16B-C3EE-484C-B551-35338A9BB6D2}'
}
vpnweb.VpnWebControl = s 'VpnWebControl Class'
{
CLSID = s '{64F1A16B-C3EE-484C-B551-35338A9BB6D2}'
CurVer = s 'vpnweb.VpnWebControl.1'
}
NoRemove CLSID
{
ForceRemove {64F1A16B-C3EE-484C-B551-35338A9BB6D2} = s 'VpnWebControl Class'
{
ProgID = s 'vpnweb.VpnWebControl.1'
VersionIndependentProgID = s 'vpnweb.VpnWebControl'
ForceRemove 'Programmable'
InprocServer32 = s '%MODULE%'
{
val ThreadingModel = s 'Apartment'
}
val AppID = s '%APPID%'
ForceRemove 'Control'
ForceRemove 'ToolboxBitmap32' = s '%MODULE%, 102'
'MiscStatus' = s '0'
{
'1' = s '%OLEMISC%'
}
'TypeLib' = s '{D8FDDBA5-B33F-4B0A-8162-A771ECD32B04}'
'Version' = s '1.0'
}
}
}

38
src/vpnweb/dlldata.c Normal file
View File

@ -0,0 +1,38 @@
/*********************************************************
DllData file -- generated by MIDL compiler
DO NOT ALTER THIS FILE
This file is regenerated by MIDL on every IDL file compile.
To completely reconstruct this file, delete it and rerun MIDL
on all the IDL files in this DLL, specifying this file for the
/dlldata command line option
*********************************************************/
#define PROXY_DELEGATION
#include <rpcproxy.h>
#ifdef __cplusplus
extern "C" {
#endif
EXTERN_PROXY_FILE( vpnweb )
PROXYFILE_LIST_START
/* Start of list */
REFERENCE_PROXY_FILE( vpnweb ),
/* End of list */
PROXYFILE_LIST_END
DLLDATA_ROUTINES( aProxyFileList, GET_DLL_CLSID )
#ifdef __cplusplus
} /*extern "C" */
#endif
/* end of generated dlldata file */

80
src/vpnweb/resource.h Normal file
View File

@ -0,0 +1,80 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by vpnweb.rc
//
#define IDS_PROJNAME 100
#define IDR_VPNWEB 101
#define IDB_VPNWEBCONTROL 102
#define IDR_VPNWEBCONTROL 103
#define IDD_VPNWEBDLG 201
#define IDC_PROGRESS1 201
#define P_PROGRESS 201
#define IDI_VPN 202
#define S_INFO 202
#define S_INFO2 203
#define IDC_BUTTON1 204
#define IDI_ICON1 204
#define IDI_SERVER 204
#define S_ICON_VPN 205
#define S_ICON_SERVER 206
#define B_START 207
#define IDS_MESSAGE_APPTITLE 10001
#define IDS_STRING10002 10002
#define IDS_STRING10003 10003
#define IDS_STRING10004 10004
#define IDS_STRING10005 10005
#define IDS_STRING10006 10006
#define IDS_STRING10007 10007
#define IDS_STRING10008 10008
#define IDS_STRING10009 10009
#define IDS_STRING10010 10010
#define IDS_STRING10011 10011
#define IDS_STRING10012 10012
#define IDS_STRING10013 10013
#define IDS_STRING10014 10014
#define IDS_STRING10015 10015
#define IDS_STRING10016 10016
#define IDS_STRING10017 10017
#define IDS_STRING10018 10018
#define IDS_STRING10019 10019
#define IDS_MESSAGE_APPTITLE_EN 11001
#define IDS_STRING11002 11002
#define IDS_STRING10020 11003
#define IDS_STRING11003 11003
#define IDS_STRING10021 11004
#define IDS_STRING11004 11004
#define IDS_STRING10022 11005
#define IDS_STRING11005 11005
#define IDS_STRING10023 11006
#define IDS_STRING11006 11006
#define IDS_STRING10024 11007
#define IDS_STRING11007 11007
#define IDS_STRING10025 11008
#define IDS_STRING11008 11008
#define IDS_STRING10026 11009
#define IDS_STRING11009 11009
#define IDS_STRING10027 11010
#define IDS_STRING11010 11010
#define IDS_STRING10028 11011
#define IDS_STRING11011 11011
#define IDS_STRING10029 11012
#define IDS_STRING11012 11012
#define IDS_STRING101 11013
#define IDS_STRING11013 11013
#define IDS_STRING11014 11014
#define IDS_STRING11015 11015
#define IDS_STRING11016 11016
#define IDS_STRING11017 11017
#define IDS_STRING11018 11018
#define IDS_STRING11019 11019
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 205
#define _APS_NEXT_COMMAND_VALUE 32768
#define _APS_NEXT_CONTROL_VALUE 206
#define _APS_NEXT_SYMED_VALUE 104
#endif
#endif

1
src/vpnweb/stdafx.cpp Normal file
View File

@ -0,0 +1 @@
#include "stdafx.h"

35
src/vpnweb/stdafx.h Normal file
View File

@ -0,0 +1,35 @@
#include <GlobalConst.h>
#pragma once
#ifndef STRICT
#define STRICT
#endif
#ifndef WINVER
#define WINVER 0x0502
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0600
#endif
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>
using namespace ATL;

61
src/vpnweb/vpnweb.cpp Normal file
View File

@ -0,0 +1,61 @@
#include "stdafx.h"
#include "resource.h"
#include "vpnweb.h"
extern "C" {
HINSTANCE hDllInstance;
}
class CvpnwebModule : public CAtlDllModuleT< CvpnwebModule >
{
public :
DECLARE_LIBID(LIBID_vpnwebLib)
DECLARE_REGISTRY_APPID_RESOURCEID(IDR_VPNWEB, "{7CE8BF01-70D6-48F6-A83A-69CA03D885C9}")
};
CvpnwebModule _AtlModule;
#ifdef _MANAGED
#pragma managed(push, off)
#endif
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
hDllInstance = hInstance;
return _AtlModule.DllMain(dwReason, lpReserved);
}
#ifdef _MANAGED
#pragma managed(pop)
#endif
STDAPI DllCanUnloadNow(void)
{
return _AtlModule.DllCanUnloadNow();
}
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
}
STDAPI DllRegisterServer(void)
{
HRESULT hr = _AtlModule.DllRegisterServer();
return hr;
}
STDAPI DllUnregisterServer(void)
{
HRESULT hr = _AtlModule.DllUnregisterServer();
return hr;
}

7
src/vpnweb/vpnweb.def Normal file
View File

@ -0,0 +1,7 @@
LIBRARY "vpnweb.ocx"
EXPORTS
DllCanUnloadNow PRIVATE
DllGetClassObject PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE

380
src/vpnweb/vpnweb.h Normal file
View File

@ -0,0 +1,380 @@
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Jan 04 19:11:13 2014
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __vpnweb_h__
#define __vpnweb_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IVpnWebControl_FWD_DEFINED__
#define __IVpnWebControl_FWD_DEFINED__
typedef interface IVpnWebControl IVpnWebControl;
#endif /* __IVpnWebControl_FWD_DEFINED__ */
#ifndef __VpnWebControl_FWD_DEFINED__
#define __VpnWebControl_FWD_DEFINED__
#ifdef __cplusplus
typedef class VpnWebControl VpnWebControl;
#else
typedef struct VpnWebControl VpnWebControl;
#endif /* __cplusplus */
#endif /* __VpnWebControl_FWD_DEFINED__ */
/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#ifdef __cplusplus
extern "C"{
#endif
#ifndef __IVpnWebControl_INTERFACE_DEFINED__
#define __IVpnWebControl_INTERFACE_DEFINED__
/* interface IVpnWebControl */
/* [unique][helpstring][nonextensible][dual][uuid][object] */
EXTERN_C const IID IID_IVpnWebControl;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("BEAC96A9-05ED-46B3-975C-4462E83878F5")
IVpnWebControl : public IDispatch
{
public:
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InstallerExeUrl(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InstallerExeUrl(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InstallerInfUrl(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InstallerInfUrl(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SettingUrl(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SettingUrl(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VpnServerManagerMode(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VpnServerManagerMode(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VpnServerHostname(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VpnServerHostname(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VpnServerHubName(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VpnServerHubName(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VpnServerPassword(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VpnServerPassword(
/* [in] */ BSTR newVal) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageID(
/* [retval][out] */ BSTR *pVal) = 0;
virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LanguageID(
/* [in] */ BSTR newVal) = 0;
};
#else /* C style interface */
typedef struct IVpnWebControlVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IVpnWebControl * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IVpnWebControl * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IVpnWebControl * This);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
IVpnWebControl * This,
/* [out] */ UINT *pctinfo);
HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
IVpnWebControl * This,
/* [in] */ UINT iTInfo,
/* [in] */ LCID lcid,
/* [out] */ ITypeInfo **ppTInfo);
HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
IVpnWebControl * This,
/* [in] */ REFIID riid,
/* [size_is][in] */ LPOLESTR *rgszNames,
/* [range][in] */ UINT cNames,
/* [in] */ LCID lcid,
/* [size_is][out] */ DISPID *rgDispId);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
IVpnWebControl * This,
/* [in] */ DISPID dispIdMember,
/* [in] */ REFIID riid,
/* [in] */ LCID lcid,
/* [in] */ WORD wFlags,
/* [out][in] */ DISPPARAMS *pDispParams,
/* [out] */ VARIANT *pVarResult,
/* [out] */ EXCEPINFO *pExcepInfo,
/* [out] */ UINT *puArgErr);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InstallerExeUrl )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InstallerExeUrl )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InstallerInfUrl )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InstallerInfUrl )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SettingUrl )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SettingUrl )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VpnServerManagerMode )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VpnServerManagerMode )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VpnServerHostname )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VpnServerHostname )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VpnServerHubName )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VpnServerHubName )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VpnServerPassword )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VpnServerPassword )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
/* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageID )(
IVpnWebControl * This,
/* [retval][out] */ BSTR *pVal);
/* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LanguageID )(
IVpnWebControl * This,
/* [in] */ BSTR newVal);
END_INTERFACE
} IVpnWebControlVtbl;
interface IVpnWebControl
{
CONST_VTBL struct IVpnWebControlVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IVpnWebControl_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IVpnWebControl_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IVpnWebControl_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IVpnWebControl_GetTypeInfoCount(This,pctinfo) \
( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) )
#define IVpnWebControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) )
#define IVpnWebControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) )
#define IVpnWebControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) )
#define IVpnWebControl_get_InstallerExeUrl(This,pVal) \
( (This)->lpVtbl -> get_InstallerExeUrl(This,pVal) )
#define IVpnWebControl_put_InstallerExeUrl(This,newVal) \
( (This)->lpVtbl -> put_InstallerExeUrl(This,newVal) )
#define IVpnWebControl_get_InstallerInfUrl(This,pVal) \
( (This)->lpVtbl -> get_InstallerInfUrl(This,pVal) )
#define IVpnWebControl_put_InstallerInfUrl(This,newVal) \
( (This)->lpVtbl -> put_InstallerInfUrl(This,newVal) )
#define IVpnWebControl_get_SettingUrl(This,pVal) \
( (This)->lpVtbl -> get_SettingUrl(This,pVal) )
#define IVpnWebControl_put_SettingUrl(This,newVal) \
( (This)->lpVtbl -> put_SettingUrl(This,newVal) )
#define IVpnWebControl_get_VpnServerManagerMode(This,pVal) \
( (This)->lpVtbl -> get_VpnServerManagerMode(This,pVal) )
#define IVpnWebControl_put_VpnServerManagerMode(This,newVal) \
( (This)->lpVtbl -> put_VpnServerManagerMode(This,newVal) )
#define IVpnWebControl_get_VpnServerHostname(This,pVal) \
( (This)->lpVtbl -> get_VpnServerHostname(This,pVal) )
#define IVpnWebControl_put_VpnServerHostname(This,newVal) \
( (This)->lpVtbl -> put_VpnServerHostname(This,newVal) )
#define IVpnWebControl_get_VpnServerHubName(This,pVal) \
( (This)->lpVtbl -> get_VpnServerHubName(This,pVal) )
#define IVpnWebControl_put_VpnServerHubName(This,newVal) \
( (This)->lpVtbl -> put_VpnServerHubName(This,newVal) )
#define IVpnWebControl_get_VpnServerPassword(This,pVal) \
( (This)->lpVtbl -> get_VpnServerPassword(This,pVal) )
#define IVpnWebControl_put_VpnServerPassword(This,newVal) \
( (This)->lpVtbl -> put_VpnServerPassword(This,newVal) )
#define IVpnWebControl_get_LanguageID(This,pVal) \
( (This)->lpVtbl -> get_LanguageID(This,pVal) )
#define IVpnWebControl_put_LanguageID(This,newVal) \
( (This)->lpVtbl -> put_LanguageID(This,newVal) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IVpnWebControl_INTERFACE_DEFINED__ */
#ifndef __vpnwebLib_LIBRARY_DEFINED__
#define __vpnwebLib_LIBRARY_DEFINED__
/* library vpnwebLib */
/* [helpstring][version][uuid] */
EXTERN_C const IID LIBID_vpnwebLib;
EXTERN_C const CLSID CLSID_VpnWebControl;
#ifdef __cplusplus
class DECLSPEC_UUID("64F1A16B-C3EE-484C-B551-35338A9BB6D2")
VpnWebControl;
#endif
#endif /* __vpnwebLib_LIBRARY_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif

51
src/vpnweb/vpnweb.idl Normal file
View File

@ -0,0 +1,51 @@
#include "olectl.h"
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(BEAC96A9-05ED-46B3-975C-4462E83878F5),
dual,
nonextensible,
helpstring("IVpnWebControl Interface"),
pointer_default(unique)
]
interface IVpnWebControl : IDispatch{
[propget, id(1), helpstring("InstallerExeUrl Property")] HRESULT InstallerExeUrl([out, retval] BSTR* pVal);
[propput, id(1), helpstring("InstallerExeUrl Property")] HRESULT InstallerExeUrl([in] BSTR newVal);
[propget, id(2), helpstring("InstallerInfUrl Property")] HRESULT InstallerInfUrl([out, retval] BSTR* pVal);
[propput, id(2), helpstring("InstallerInfUrl Property")] HRESULT InstallerInfUrl([in] BSTR newVal);
[propget, id(3), helpstring("SettingUrl Property")] HRESULT SettingUrl([out, retval] BSTR* pVal);
[propput, id(3), helpstring("SettingUrl Property")] HRESULT SettingUrl([in] BSTR newVal);
[propget, id(4), helpstring("VpnServerManagerMode Property")] HRESULT VpnServerManagerMode([out, retval] BSTR* pVal);
[propput, id(4), helpstring("VpnServerManagerMode Property")] HRESULT VpnServerManagerMode([in] BSTR newVal);
[propget, id(5), helpstring("VpnServerHostname Property")] HRESULT VpnServerHostname([out, retval] BSTR* pVal);
[propput, id(5), helpstring("VpnServerHostname Property")] HRESULT VpnServerHostname([in] BSTR newVal);
[propget, id(6), helpstring("VpnServerHubName Property")] HRESULT VpnServerHubName([out, retval] BSTR* pVal);
[propput, id(6), helpstring("VpnServerHubName Property")] HRESULT VpnServerHubName([in] BSTR newVal);
[propget, id(7), helpstring("VpnServerPassword Property")] HRESULT VpnServerPassword([out, retval] BSTR* pVal);
[propput, id(7), helpstring("VpnServerPassword Property")] HRESULT VpnServerPassword([in] BSTR newVal);
[propget, id(8), helpstring("Language Property")] HRESULT LanguageID([out, retval] BSTR* pVal);
[propput, id(8), helpstring("Language Property")] HRESULT LanguageID([in] BSTR newVal);
};
[
uuid(D8FDDBA5-B33F-4B0A-8162-A771ECD32B04),
version(1.0),
helpstring("VPN Client Web Installer Version Library")
]
library vpnwebLib
{
importlib("stdole2.tlb");
[
uuid(64F1A16B-C3EE-484C-B551-35338A9BB6D2),
control,
helpstring("VPN Client Web Installer")
]
coclass VpnWebControl
{
[default] interface IVpnWebControl;
};
};

188
src/vpnweb/vpnweb.rc Normal file
View File

@ -0,0 +1,188 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.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 ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"1 TYPELIB ""vpnweb.tlb""\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//
IDR_VPNWEB REGISTRY "vpnweb.rgs"
IDR_VPNWEBCONTROL REGISTRY "VpnWebControl.rgs"
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_VPNWEBCONTROL BITMAP "VpnWebControl.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_VPNWEBDLG DIALOGEX 0, 0, 240, 84
STYLE DS_SETFONT | WS_CHILD
FONT 11, "Segoe UI", 400, 0, 0x0
BEGIN
ICON IDI_VPN,S_ICON_VPN,2,4,16,13
LTEXT "<22><><EFBFBD>҂<EFBFBD><D282><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...",S_INFO,26,4,209,59
CONTROL "",P_PROGRESS,"msctls_progress32",WS_BORDER,2,66,233,12
LTEXT "[VPN <20>ڑ<EFBFBD><DA91>̊J<CC8A>n] <20>{<7B>^<5E><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ƁAVPN <20>ڑ<EFBFBD><DA91><EFBFBD><EFBFBD>J<EFBFBD>n<EFBFBD><6E><EFBFBD>܂<EFBFBD><DC82>B",S_INFO2,26,4,209,46
DEFPUSHBUTTON "VPN <20>ڑ<EFBFBD><DA91>̊J<CC8A>n",B_START,68,51,107,23
ICON IDI_SERVER,S_ICON_SERVER,2,4,16,13
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_VPNWEBDLG, DIALOG
BEGIN
LEFTMARGIN, 2
TOPMARGIN, 3
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_VPN ICON "VPN.ico"
IDI_SERVER ICON "VPNSvr.ico"
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_PROJNAME "vpnweb"
END
STRINGTABLE
BEGIN
IDS_MESSAGE_APPTITLE "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A Web <20>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><>"
IDS_STRING10002 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A Web <20>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD>́A<CD81><41><EFBFBD>̃I<CC83>y<EFBFBD><79><EFBFBD>[<5B>e<EFBFBD>B<EFBFBD><42><EFBFBD>O<EFBFBD>V<EFBFBD>X<EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>BWeb <20>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD> Windows 2000 / XP / Server 2003 / Vista / Server 2008 / 7 / Server 2008 R2 <20>ɑΉ<C991><CE89><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82>B<EFBFBD><EFBFBD><E893AE> VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD><41><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B"
IDS_STRING10003 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m<EFBFBD>F<EFBFBD><46><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD>..."
IDS_STRING10004 "<22>t<EFBFBD>@<40>C<EFBFBD><43> %S <20>̃_<CC83>E<EFBFBD><45><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD>Ɏ<EFBFBD><C98E>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\r\nVPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD>𒆎~<7E><><EFBFBD>܂<EFBFBD><DC82>B"
IDS_STRING10005 "<22>t<EFBFBD>@<40>C<EFBFBD><43> %S <20>̓<EFBFBD><CC93>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\r\nVPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD>𒆎~<7E><><EFBFBD>܂<EFBFBD><DC82>B"
IDS_STRING10006 "<22><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43> %s <20><><EFBFBD><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>B"
IDS_STRING10007 "<22>K<EFBFBD>v<EFBFBD>ȃf<C883>[<5B>^<5E>̎擾<CC8E><E693BE> VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD>...\r\n<><6E><EFBFBD>҂<EFBFBD><D282><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B\r\n\r\n<><6E><EFBFBD>q<EFBFBD>l<EFBFBD>̃R<CC83><52><EFBFBD>s<EFBFBD><73><EFBFBD>[<5B>^<5E>̌l<C290><6C><EFBFBD><EFBFBD><EFBFBD>Ȃǂ<C882><C782>C<EFBFBD><43><EFBFBD>^<5E>[<5B>l<EFBFBD>b<EFBFBD>g<EFBFBD>ɑ<EFBFBD><C991>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ͂<C682><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B"
IDS_STRING10008 "<22>v<EFBFBD><76><EFBFBD>Z<EFBFBD>X %S <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>B\r\nVPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD>𒆎~<7E><><EFBFBD>܂<EFBFBD><DC82>B"
IDS_STRING10009 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD>n<EFBFBD><6E><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD>..."
IDS_STRING10010 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>͐ڑ<CD90><DA91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͐<EFBFBD><CD90><EFBFBD><EFBFBD>ɊJ<C98A>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\r\n\r\n<><6E><EFBFBD>̃y<CC83>[<5B>W<EFBFBD><57><EFBFBD>‚<EFBFBD><C282><EFBFBD>A<EFBFBD>ʂ̃y<CC83>[<5B>W<EFBFBD>Ɉړ<C988><DA93><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B"
IDS_STRING10011 "<22>C<EFBFBD><43><EFBFBD>^<5E>[<5B>l<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><E78EA9><EFBFBD>Ń_<C583>E<EFBFBD><45><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43> %S <20>́A<CD81>M<EFBFBD><4D><EFBFBD>ł<EFBFBD><C582><EFBFBD>s<EFBFBD><73><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ēd<C493>q<EFBFBD><71><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>B\r\n<><6E><EFBFBD>݂<EFBFBD><DD82>̃<EFBFBD><CC83>b<EFBFBD>Z<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>̊J<CC8A><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>єz<D194>z<EFBFBD><7A><EFBFBD>́A<CD81>C<EFBFBD><43><EFBFBD>^<5E>[<5B>l<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><E78EA9><EFBFBD>Ń_<C583>E<EFBFBD><45><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43> %S <20><><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>ł<EFBFBD><C582><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۏ؂ł<D882><C582><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>ɃZ<C983>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD>ȃR<C883>[<5B>h<EFBFBD><68><EFBFBD>܂܂<DC82><DC82>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>ӔC<D394>𕉂<EFBFBD><F0958982>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\r\n\r\n<><6E><EFBFBD>̃t<CC83>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>Ƃ̓Z<CD83>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>B<EFBFBD><EFBFBD><E39084><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̃t<CC83>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD>T<EFBFBD>d<EFBFBD>ɔ<EFBFBD><C994>f<EFBFBD><66><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B\r\n\r\n<><6E><EFBFBD>[<5B>U<EFBFBD>[<5B>̔<EFBFBD><CC94>f<EFBFBD>ƐӔC<D394>ɂ<EFBFBD><C982><EFBFBD> [OK] <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ƁA<C681>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>𑱍s<F091B18D><73><EFBFBD>܂<EFBFBD><DC82>B[<5B>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD><5A>] <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ƁA<C681>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>𒆒f<F0928692><66><EFBFBD>܂<EFBFBD><DC82>B\r\n\r\n<><6E> <20><><EFBFBD>̃<EFBFBD><CC83>b<EFBFBD>Z<EFBFBD>[<5B>W<EFBFBD>́A<CD81>t<EFBFBD>@<40>C<EFBFBD><43> %S <20><><EFBFBD>L<EFBFBD><4C><EFBFBD>ȃR<C883>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>ؖ<EFBFBD><D896><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ď<EFBFBD><C48F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃɂ<C682><C982><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>Ȃ<EFBFBD><C882>܂<EFBFBD><DC82>B"
IDS_STRING10012 "<22>Z<EFBFBD>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>B<EFBFBD>Ɋւ<C98A><D682><EFBFBD><EFBFBD>x<EFBFBD><78>"
IDS_STRING10013 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A<EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD>́A<CD81><41><EFBFBD>[<5B>U<EFBFBD>[<5B>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ăL<C483><4C><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD><5A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B"
IDS_STRING10014 "[<5B><><EFBFBD>z HUB <20>̊Ǘ<CC8A>] <20>{<7B>^<5E><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ƁAVPN <20>T<EFBFBD>[<5B>o<EFBFBD>[<5B>Ǘ<EFBFBD><C797>}<7D>l<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ĉ<EFBFBD><C489>z HUB <20>̊Ǘ<CC8A><C797><EFBFBD><EFBFBD>J<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B"
IDS_STRING10015 "<22><><EFBFBD>z HUB <20>̊Ǘ<CC8A>"
END
STRINGTABLE
BEGIN
IDS_MESSAGE_APPTITLE_EN "VPN Software Web Installer"
IDS_STRING11002 "This web installer is not supported by this operating system. Windows 2000, XP, 2003, Vista, Server 2008, 7 or Server 2008 R2 required. Please install VPN software manually."
IDS_STRING11003 "Verifying VPN Software..."
IDS_STRING11004 "Failed to download file %S.\r\nInstallation of VPN software aborted."
IDS_STRING11005 "Invalid file %S. \r\nInstallation of VPN software aborted."
IDS_STRING11006 "Failed to create temporary file %s."
IDS_STRING11007 "Getting data and installing VPN software...\r\nPlease wait.\r\n\r\nAny of your private infomation is not sent to the Internet."
END
STRINGTABLE
BEGIN
IDS_STRING11008 "Failed to start process %S. Installation of VPN software aborted."
IDS_STRING11009 "Starting installation of VPN Software."
IDS_STRING11010 "Installation process finished. Connection process are started correctly.\r\n\r\nYou can now close your browser or move the other pages."
IDS_STRING11011 "The automatically downloaded file %S from the Internet is not digitally signed with a trusted certificate.\r\nThe developer and publisher do not guarantee that the downloaded file %S is safe and do not take responsibility in case of unsafe code included in the file.\r\n\r\nWe recommend to abort the installation by clicking [Cancel]. Proceed the installation by clicking [OK] at your own risk.\r\n\r\nNotice: the message will not be disappered when the file %S is signed by valid code signing certificate authentication."
IDS_STRING11012 "Security Alert"
IDS_STRING11013 "Installation cancelled by user."
IDS_STRING11014 "Press [Manage Virtual HUB] button to manage Virtual HUB with VPN Server Manager started."
IDS_STRING11015 "Manage Virtual HUB"
IDS_STRING11016 "You can now close your browser or move the other pages.\r\n\r\nWhen VPN Server Manager displayed, reload this page on web browser."
IDS_STRING11017 "Invalid Parameters for the ActiveX control.\r\n\r\nPlease check the <object> tag entry in the HTML file."
IDS_STRING11018 "Press Start VPN Connection to start the VPN connection."
IDS_STRING11019 "Start VPN Connection"
END
STRINGTABLE
BEGIN
IDS_STRING10016 "<22><><EFBFBD>̃y<CC83>[<5B>W<EFBFBD><57><EFBFBD>‚<EFBFBD><C282><EFBFBD>A<EFBFBD>ʂ̃y<CC83>[<5B>W<EFBFBD>Ɉړ<C988><DA93><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B\r\n\r\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x VPN <20>T<EFBFBD>[<5B>o<EFBFBD>[<5B>Ǘ<EFBFBD><C797>}<7D>l<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ́AWeb <20>u<EFBFBD><75><EFBFBD>E<EFBFBD>U<EFBFBD>ł<EFBFBD><C582>̃y<CC83>[<5B>W<EFBFBD><57><EFBFBD>ĕ\<5C><> (<28>X<EFBFBD>V) <20><><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B"
IDS_STRING10017 "VPN <20>\<5C>t<EFBFBD>g<EFBFBD>E<EFBFBD>F<EFBFBD>A Web <20>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD> ActiveX <20>R<EFBFBD><52><EFBFBD>g<EFBFBD><67><EFBFBD>[<5B><><EFBFBD>ɑ΂<C991><CE82>ăp<C483><70><EFBFBD><EFBFBD><EFBFBD>[<5B>^<5E><><EFBFBD>K<EFBFBD>؂Ɏw<C98E><EFBFBD><E882B3><EFBFBD>Ă<EFBFBD><C482>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\r\n\r\nHTML <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <object> <20>^<5E>O<EFBFBD>̋L<CC8B>q<EFBFBD><71><EFBFBD>m<EFBFBD>F<EFBFBD><46><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B"
IDS_STRING10018 "[VPN <20>ڑ<EFBFBD><DA91>̊J<CC8A>n] <20>{<7B>^<5E><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ƁAVPN <20>ڑ<EFBFBD><DA91><EFBFBD><EFBFBD>J<EFBFBD>n<EFBFBD><6E><EFBFBD>܂<EFBFBD><DC82>B"
IDS_STRING10019 "VPN <20>ڑ<EFBFBD><DA91>̊J<CC8A>n"
END
#endif // Japanese resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "vpnweb.tlb"
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

11
src/vpnweb/vpnweb.rgs Normal file
View File

@ -0,0 +1,11 @@
HKCR
{
NoRemove AppID
{
'%APPID%' = s 'vpnweb'
'vpnweb.ocx'
{
val AppID = s '%APPID%'
}
}
}

369
src/vpnweb/vpnweb.vcproj Normal file
View File

@ -0,0 +1,369 @@
<?xml version="1.0" encoding="shift_jis"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="vpnweb"
ProjectGUID="{1F58A797-A861-4256-9262-CE97B923016B}"
RootNamespace="vpnweb"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)bin"
IntermediateDirectory="$(PlatformName)_$(ConfigurationName)"
ConfigurationType="2"
UseOfATL="1"
CharacterSet="2"
WholeProgramOptimization="0"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
GenerateStublessProxies="true"
HeaderFileName="vpnweb.h"
DLLDataFileName=""
InterfaceIdentifierFileName="vpnweb_i.c"
ProxyFileName="vpnweb_p.c"
ValidateParameters="false"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(SolutionDir)Mayaqua\win32_inc;.;$(SolutionDir)"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USE_32BIT_TIME_T;_USRDLL"
MinimalRebuild="true"
ExceptionHandling="1"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
StructMemberAlignment="4"
UsePrecompiledHeader="1"
WarningLevel="3"
DebugInformationFormat="4"
CompileAs="2"
DisableSpecificWarnings="4995;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
AdditionalIncludeDirectories="$(SolutionDir)Mayaqua\win32_inc;$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="$(SolutionDir)bin\BuildUtil.exe /CMD:GenerateVersionResource &quot;$(TargetPath)&quot; /OUT:&quot;$(SolutionDir)tmp\VersionResources\$(ProjectName)_$(PlatformName).res&quot;"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalDependencies="&quot;$(SolutionDir)tmp\VersionResources\$(ProjectName)_$(PlatformName).res&quot;"
OutputFile="$(OutDir)\not_signed\vpnweb.ocx"
LinkIncremental="2"
GenerateManifest="false"
AdditionalManifestDependencies="type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; processorArchitecture=&apos;amd64&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos;"
ModuleDefinitionFile="vpnweb.def"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(SolutionDir)DebugFiles\pdb\$(PlatformName)_$(ConfigurationName)\$(ProjectName).pdb"
GenerateMapFile="true"
MapFileName="$(SolutionDir)DebugFiles\map\$(PlatformName)_$(ConfigurationName)\$(ProjectName).map"
SubSystem="2"
StackReserveSize="0"
ImportLibrary=""
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
EmbedManifest="false"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="$(SolutionDir)bin\BuildUtil.exe /CMD:SetManifest &quot;$(TargetPath)&quot; /MANIFEST:x86_admin.manifest&#x0D;&#x0A;$(SolutionDir)bin\BuildUtil.exe /CMD:SignCode &quot;$(TargetPath)&quot; /COMMENT:&quot;VPN Software&quot; /KERNEL:no&#x0D;&#x0A;$(SolutionDir)bin\BuildUtil.exe /CMD:GenerateVpnWebOcxCab &quot;$(TargetPath)&quot; /DEST:&quot;$(OutDir)\not_signed\vpnweb.cab&quot;&#x0D;&#x0A;"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)bin"
IntermediateDirectory="$(PlatformName)_$(ConfigurationName)"
ConfigurationType="2"
UseOfATL="1"
CharacterSet="2"
WholeProgramOptimization="0"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
GenerateStublessProxies="true"
HeaderFileName="vpnweb.h"
DLLDataFileName=""
InterfaceIdentifierFileName="vpnweb_i.c"
ProxyFileName="vpnweb_p.c"
ValidateParameters="false"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="3"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="false"
FavorSizeOrSpeed="0"
AdditionalIncludeDirectories="$(SolutionDir)Mayaqua\win32_inc;.;$(SolutionDir)"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USE_32BIT_TIME_T;VPN_SPEED;_USRDLL"
StringPooling="false"
ExceptionHandling="1"
RuntimeLibrary="0"
StructMemberAlignment="4"
BufferSecurityCheck="false"
EnableFunctionLevelLinking="false"
UsePrecompiledHeader="1"
WarningLevel="3"
DebugInformationFormat="3"
CompileAs="2"
DisableSpecificWarnings="4995;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
AdditionalIncludeDirectories="$(SolutionDir)Mayaqua\win32_inc;$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="$(SolutionDir)bin\BuildUtil.exe /CMD:GenerateVersionResource &quot;$(TargetPath)&quot; /OUT:&quot;$(SolutionDir)tmp\VersionResources\$(ProjectName)_$(PlatformName).res&quot;"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="true"
AdditionalDependencies="&quot;$(SolutionDir)tmp\VersionResources\$(ProjectName)_$(PlatformName).res&quot;"
OutputFile="$(OutDir)\not_signed\vpnweb.ocx"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\lib&quot;"
GenerateManifest="false"
AdditionalManifestDependencies="type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; processorArchitecture=&apos;x86&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos;"
ModuleDefinitionFile="vpnweb.def"
DelayLoadDLLs=""
GenerateDebugInformation="true"
ProgramDatabaseFile="$(SolutionDir)DebugFiles\pdb\$(PlatformName)_$(ConfigurationName)\$(ProjectName).pdb"
GenerateMapFile="true"
MapFileName="$(SolutionDir)DebugFiles\map\$(PlatformName)_$(ConfigurationName)\$(ProjectName).map"
SubSystem="2"
StackReserveSize="0"
OptimizeReferences="1"
EnableCOMDATFolding="1"
ImportLibrary=""
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
EmbedManifest="false"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="$(SolutionDir)bin\BuildUtil.exe /CMD:SetManifest &quot;$(TargetPath)&quot; /MANIFEST:x86_admin.manifest&#x0D;&#x0A;$(SolutionDir)bin\BuildUtil.exe /CMD:SignCode &quot;$(TargetPath)&quot; /COMMENT:&quot;VPN Software&quot; /KERNEL:no&#x0D;&#x0A;$(SolutionDir)bin\BuildUtil.exe /CMD:GenerateVpnWebOcxCab &quot;$(TargetPath)&quot; /DEST:&quot;$(OutDir)\not_signed\vpnweb.cab&quot;&#x0D;&#x0A;"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\stdafx.cpp"
>
</File>
<File
RelativePath=".\vpnweb.cpp"
>
</File>
<File
RelativePath=".\vpnweb.def"
>
</File>
<File
RelativePath=".\vpnweb.idl"
>
</File>
<File
RelativePath=".\vpnweb_i.c"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAs="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAs="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\VpnWebControl.cpp"
>
</File>
<File
RelativePath=".\vpnwebdlg.c"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAs="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAs="1"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\resource.h"
>
</File>
<File
RelativePath=".\stdafx.h"
>
</File>
<File
RelativePath=".\vpnweb.h"
>
</File>
<File
RelativePath=".\VpnWebControl.h"
>
</File>
<File
RelativePath=".\vpnwebdlg.h"
>
</File>
<File
RelativePath=".\vpnwebdlg_inner.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\VPN.ico"
>
</File>
<File
RelativePath=".\VPNSvr.ico"
>
</File>
<File
RelativePath=".\vpnweb.ico"
>
</File>
<File
RelativePath=".\vpnweb.rc"
>
</File>
<File
RelativePath=".\vpnweb.rgs"
>
</File>
<File
RelativePath=".\VpnWebControl.bmp"
>
</File>
<File
RelativePath=".\VpnWebControl.rgs"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

85
src/vpnweb/vpnweb_i.c Normal file
View File

@ -0,0 +1,85 @@
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Jan 04 19:11:13 2014
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#pragma warning( disable: 4049 ) /* more than 64k source lines */
#ifdef __cplusplus
extern "C"{
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifdef _MIDL_USE_GUIDDEF_
#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
#else // !_MIDL_USE_GUIDDEF_
#ifndef __IID_DEFINED__
#define __IID_DEFINED__
typedef struct _IID
{
unsigned long x;
unsigned short s1;
unsigned short s2;
unsigned char c[8];
} IID;
#endif // __IID_DEFINED__
#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
#endif !_MIDL_USE_GUIDDEF_
MIDL_DEFINE_GUID(IID, IID_IVpnWebControl,0x2C954023,0x34FF,0x490B,0x86,0x1F,0x71,0xB0,0xCE,0xBC,0x03,0xB7);
MIDL_DEFINE_GUID(IID, LIBID_vpnwebLib,0x17F2E666,0x4CC2,0x49AC,0x81,0x08,0xFA,0x82,0x9F,0x3C,0xAC,0xFD);
MIDL_DEFINE_GUID(CLSID, CLSID_VpnWebControl,0x7CF3E7C4,0x6112,0x4D72,0xA0,0xCD,0xD0,0xAD,0x7E,0xEB,0x54,0x67);
#undef MIDL_DEFINE_GUID
#ifdef __cplusplus
}
#endif

783
src/vpnweb/vpnweb_p.c Normal file
View File

@ -0,0 +1,783 @@
/* this ALWAYS GENERATED file contains the proxy stub code */
/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Jan 04 19:11:13 2014
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#if !defined(_M_IA64) && !defined(_M_AMD64)
#pragma warning( disable: 4049 ) /* more than 64k source lines */
#if _MSC_VER >= 1200
#pragma warning(push)
#endif
#pragma warning( disable: 4211 ) /* redefine extern to static */
#pragma warning( disable: 4232 ) /* dllimport identity*/
#pragma warning( disable: 4024 ) /* array to pointer mapping*/
#pragma warning( disable: 4152 ) /* function/data pointer conversion in expression */
#pragma warning( disable: 4100 ) /* unreferenced arguments in x86 call */
#pragma optimize("", off )
#define USE_STUBLESS_PROXY
/* verify that the <rpcproxy.h> version is high enough to compile this file*/
#ifndef __REDQ_RPCPROXY_H_VERSION__
#define __REQUIRED_RPCPROXY_H_VERSION__ 440
#endif
#include "rpcproxy.h"
#ifndef __RPCPROXY_H_VERSION__
#error this stub requires an updated version of <rpcproxy.h>
#endif // __RPCPROXY_H_VERSION__
#include "vpnweb.h"
#define TYPE_FORMAT_STRING_SIZE 55
#define PROC_FORMAT_STRING_SIZE 449
#define EXPR_FORMAT_STRING_SIZE 1
#define TRANSMIT_AS_TABLE_SIZE 0
#define WIRE_MARSHAL_TABLE_SIZE 1
typedef struct _vpnweb_MIDL_TYPE_FORMAT_STRING
{
short Pad;
unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
} vpnweb_MIDL_TYPE_FORMAT_STRING;
typedef struct _vpnweb_MIDL_PROC_FORMAT_STRING
{
short Pad;
unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
} vpnweb_MIDL_PROC_FORMAT_STRING;
typedef struct _vpnweb_MIDL_EXPR_FORMAT_STRING
{
long Pad;
unsigned char Format[ EXPR_FORMAT_STRING_SIZE ];
} vpnweb_MIDL_EXPR_FORMAT_STRING;
static RPC_SYNTAX_IDENTIFIER _RpcTransferSyntax =
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}};
extern const vpnweb_MIDL_TYPE_FORMAT_STRING vpnweb__MIDL_TypeFormatString;
extern const vpnweb_MIDL_PROC_FORMAT_STRING vpnweb__MIDL_ProcFormatString;
extern const vpnweb_MIDL_EXPR_FORMAT_STRING vpnweb__MIDL_ExprFormatString;
extern const MIDL_STUB_DESC Object_StubDesc;
extern const MIDL_SERVER_INFO IVpnWebControl_ServerInfo;
extern const MIDL_STUBLESS_PROXY_INFO IVpnWebControl_ProxyInfo;
extern const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[ WIRE_MARSHAL_TABLE_SIZE ];
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
#if !(TARGET_IS_NT40_OR_LATER)
#error You need a Windows NT 4.0 or later to run this stub because it uses these features:
#error -Oif or -Oicf, [wire_marshal] or [user_marshal] attribute.
#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
#error This app will fail with the RPC_X_WRONG_STUB_VERSION error.
#endif
static const vpnweb_MIDL_PROC_FORMAT_STRING vpnweb__MIDL_ProcFormatString =
{
0,
{
/* Procedure get_InstallerExeUrl */
0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 2 */ NdrFcLong( 0x0 ), /* 0 */
/* 6 */ NdrFcShort( 0x7 ), /* 7 */
/* 8 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 10 */ NdrFcShort( 0x0 ), /* 0 */
/* 12 */ NdrFcShort( 0x8 ), /* 8 */
/* 14 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 16 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 18 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 20 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 22 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 24 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 26 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_InstallerExeUrl */
/* 28 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 30 */ NdrFcLong( 0x0 ), /* 0 */
/* 34 */ NdrFcShort( 0x8 ), /* 8 */
/* 36 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 38 */ NdrFcShort( 0x0 ), /* 0 */
/* 40 */ NdrFcShort( 0x8 ), /* 8 */
/* 42 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 44 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 46 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 48 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 50 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 52 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 54 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_InstallerInfUrl */
/* 56 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 58 */ NdrFcLong( 0x0 ), /* 0 */
/* 62 */ NdrFcShort( 0x9 ), /* 9 */
/* 64 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 66 */ NdrFcShort( 0x0 ), /* 0 */
/* 68 */ NdrFcShort( 0x8 ), /* 8 */
/* 70 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 72 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 74 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 76 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 78 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 80 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 82 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_InstallerInfUrl */
/* 84 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 86 */ NdrFcLong( 0x0 ), /* 0 */
/* 90 */ NdrFcShort( 0xa ), /* 10 */
/* 92 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 94 */ NdrFcShort( 0x0 ), /* 0 */
/* 96 */ NdrFcShort( 0x8 ), /* 8 */
/* 98 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 100 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 102 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 104 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 106 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 108 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 110 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_SettingUrl */
/* 112 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 114 */ NdrFcLong( 0x0 ), /* 0 */
/* 118 */ NdrFcShort( 0xb ), /* 11 */
/* 120 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 122 */ NdrFcShort( 0x0 ), /* 0 */
/* 124 */ NdrFcShort( 0x8 ), /* 8 */
/* 126 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 128 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 130 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 132 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 134 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 136 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 138 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_SettingUrl */
/* 140 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 142 */ NdrFcLong( 0x0 ), /* 0 */
/* 146 */ NdrFcShort( 0xc ), /* 12 */
/* 148 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 150 */ NdrFcShort( 0x0 ), /* 0 */
/* 152 */ NdrFcShort( 0x8 ), /* 8 */
/* 154 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 156 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 158 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 160 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 162 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 164 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 166 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_VpnServerManagerMode */
/* 168 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 170 */ NdrFcLong( 0x0 ), /* 0 */
/* 174 */ NdrFcShort( 0xd ), /* 13 */
/* 176 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 178 */ NdrFcShort( 0x0 ), /* 0 */
/* 180 */ NdrFcShort( 0x8 ), /* 8 */
/* 182 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 184 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 186 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 188 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 190 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 192 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 194 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_VpnServerManagerMode */
/* 196 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 198 */ NdrFcLong( 0x0 ), /* 0 */
/* 202 */ NdrFcShort( 0xe ), /* 14 */
/* 204 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 206 */ NdrFcShort( 0x0 ), /* 0 */
/* 208 */ NdrFcShort( 0x8 ), /* 8 */
/* 210 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 212 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 214 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 216 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 218 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 220 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 222 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_VpnServerHostname */
/* 224 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 226 */ NdrFcLong( 0x0 ), /* 0 */
/* 230 */ NdrFcShort( 0xf ), /* 15 */
/* 232 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 234 */ NdrFcShort( 0x0 ), /* 0 */
/* 236 */ NdrFcShort( 0x8 ), /* 8 */
/* 238 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 240 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 242 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 244 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 246 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 248 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 250 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_VpnServerHostname */
/* 252 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 254 */ NdrFcLong( 0x0 ), /* 0 */
/* 258 */ NdrFcShort( 0x10 ), /* 16 */
/* 260 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 262 */ NdrFcShort( 0x0 ), /* 0 */
/* 264 */ NdrFcShort( 0x8 ), /* 8 */
/* 266 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 268 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 270 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 272 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 274 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 276 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 278 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_VpnServerHubName */
/* 280 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 282 */ NdrFcLong( 0x0 ), /* 0 */
/* 286 */ NdrFcShort( 0x11 ), /* 17 */
/* 288 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 290 */ NdrFcShort( 0x0 ), /* 0 */
/* 292 */ NdrFcShort( 0x8 ), /* 8 */
/* 294 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 296 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 298 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 300 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 302 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 304 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 306 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_VpnServerHubName */
/* 308 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 310 */ NdrFcLong( 0x0 ), /* 0 */
/* 314 */ NdrFcShort( 0x12 ), /* 18 */
/* 316 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 318 */ NdrFcShort( 0x0 ), /* 0 */
/* 320 */ NdrFcShort( 0x8 ), /* 8 */
/* 322 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 324 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 326 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 328 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 330 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 332 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 334 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_VpnServerPassword */
/* 336 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 338 */ NdrFcLong( 0x0 ), /* 0 */
/* 342 */ NdrFcShort( 0x13 ), /* 19 */
/* 344 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 346 */ NdrFcShort( 0x0 ), /* 0 */
/* 348 */ NdrFcShort( 0x8 ), /* 8 */
/* 350 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 352 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 354 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 356 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 358 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 360 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 362 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_VpnServerPassword */
/* 364 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 366 */ NdrFcLong( 0x0 ), /* 0 */
/* 370 */ NdrFcShort( 0x14 ), /* 20 */
/* 372 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 374 */ NdrFcShort( 0x0 ), /* 0 */
/* 376 */ NdrFcShort( 0x8 ), /* 8 */
/* 378 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 380 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 382 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 384 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 386 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 388 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 390 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure get_LanguageID */
/* 392 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 394 */ NdrFcLong( 0x0 ), /* 0 */
/* 398 */ NdrFcShort( 0x15 ), /* 21 */
/* 400 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 402 */ NdrFcShort( 0x0 ), /* 0 */
/* 404 */ NdrFcShort( 0x8 ), /* 8 */
/* 406 */ 0x5, /* Oi2 Flags: srv must size, has return, */
0x2, /* 2 */
/* Parameter pVal */
/* 408 */ NdrFcShort( 0x2113 ), /* Flags: must size, must free, out, simple ref, srv alloc size=8 */
/* 410 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 412 */ NdrFcShort( 0x1e ), /* Type Offset=30 */
/* Return value */
/* 414 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 416 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 418 */ 0x8, /* FC_LONG */
0x0, /* 0 */
/* Procedure put_LanguageID */
/* 420 */ 0x33, /* FC_AUTO_HANDLE */
0x6c, /* Old Flags: object, Oi2 */
/* 422 */ NdrFcLong( 0x0 ), /* 0 */
/* 426 */ NdrFcShort( 0x16 ), /* 22 */
/* 428 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
/* 430 */ NdrFcShort( 0x0 ), /* 0 */
/* 432 */ NdrFcShort( 0x8 ), /* 8 */
/* 434 */ 0x6, /* Oi2 Flags: clt must size, has return, */
0x2, /* 2 */
/* Parameter newVal */
/* 436 */ NdrFcShort( 0x8b ), /* Flags: must size, must free, in, by val, */
/* 438 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
/* 440 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
/* Return value */
/* 442 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
/* 444 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
/* 446 */ 0x8, /* FC_LONG */
0x0, /* 0 */
0x0
}
};
static const vpnweb_MIDL_TYPE_FORMAT_STRING vpnweb__MIDL_TypeFormatString =
{
0,
{
NdrFcShort( 0x0 ), /* 0 */
/* 2 */
0x11, 0x4, /* FC_RP [alloced_on_stack] */
/* 4 */ NdrFcShort( 0x1a ), /* Offset= 26 (30) */
/* 6 */
0x13, 0x0, /* FC_OP */
/* 8 */ NdrFcShort( 0xc ), /* Offset= 12 (20) */
/* 10 */
0x1b, /* FC_CARRAY */
0x1, /* 1 */
/* 12 */ NdrFcShort( 0x2 ), /* 2 */
/* 14 */ 0x9, /* Corr desc: FC_ULONG */
0x0, /* */
/* 16 */ NdrFcShort( 0xfffc ), /* -4 */
/* 18 */ 0x6, /* FC_SHORT */
0x5b, /* FC_END */
/* 20 */
0x17, /* FC_CSTRUCT */
0x3, /* 3 */
/* 22 */ NdrFcShort( 0x8 ), /* 8 */
/* 24 */ NdrFcShort( 0xfff2 ), /* Offset= -14 (10) */
/* 26 */ 0x8, /* FC_LONG */
0x8, /* FC_LONG */
/* 28 */ 0x5c, /* FC_PAD */
0x5b, /* FC_END */
/* 30 */ 0xb4, /* FC_USER_MARSHAL */
0x83, /* 131 */
/* 32 */ NdrFcShort( 0x0 ), /* 0 */
/* 34 */ NdrFcShort( 0x4 ), /* 4 */
/* 36 */ NdrFcShort( 0x0 ), /* 0 */
/* 38 */ NdrFcShort( 0xffe0 ), /* Offset= -32 (6) */
/* 40 */
0x12, 0x0, /* FC_UP */
/* 42 */ NdrFcShort( 0xffea ), /* Offset= -22 (20) */
/* 44 */ 0xb4, /* FC_USER_MARSHAL */
0x83, /* 131 */
/* 46 */ NdrFcShort( 0x0 ), /* 0 */
/* 48 */ NdrFcShort( 0x4 ), /* 4 */
/* 50 */ NdrFcShort( 0x0 ), /* 0 */
/* 52 */ NdrFcShort( 0xfff4 ), /* Offset= -12 (40) */
0x0
}
};
static const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[ WIRE_MARSHAL_TABLE_SIZE ] =
{
{
BSTR_UserSize
,BSTR_UserMarshal
,BSTR_UserUnmarshal
,BSTR_UserFree
}
};
/* Object interface: IUnknown, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: IDispatch, ver. 0.0,
GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: IVpnWebControl, ver. 0.0,
GUID={0x2C954023,0x34FF,0x490B,{0x86,0x1F,0x71,0xB0,0xCE,0xBC,0x03,0xB7}} */
#pragma code_seg(".orpc")
static const unsigned short IVpnWebControl_FormatStringOffsetTable[] =
{
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
0,
28,
56,
84,
112,
140,
168,
196,
224,
252,
280,
308,
336,
364,
392,
420
};
static const MIDL_STUBLESS_PROXY_INFO IVpnWebControl_ProxyInfo =
{
&Object_StubDesc,
vpnweb__MIDL_ProcFormatString.Format,
&IVpnWebControl_FormatStringOffsetTable[-3],
0,
0,
0
};
static const MIDL_SERVER_INFO IVpnWebControl_ServerInfo =
{
&Object_StubDesc,
0,
vpnweb__MIDL_ProcFormatString.Format,
&IVpnWebControl_FormatStringOffsetTable[-3],
0,
0,
0,
0};
CINTERFACE_PROXY_VTABLE(23) _IVpnWebControlProxyVtbl =
{
&IVpnWebControl_ProxyInfo,
&IID_IVpnWebControl,
IUnknown_QueryInterface_Proxy,
IUnknown_AddRef_Proxy,
IUnknown_Release_Proxy ,
0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ ,
0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ ,
0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ ,
0 /* IDispatch_Invoke_Proxy */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_InstallerExeUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_InstallerExeUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_InstallerInfUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_InstallerInfUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_SettingUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_SettingUrl */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_VpnServerManagerMode */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_VpnServerManagerMode */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_VpnServerHostname */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_VpnServerHostname */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_VpnServerHubName */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_VpnServerHubName */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_VpnServerPassword */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_VpnServerPassword */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::get_LanguageID */ ,
(void *) (INT_PTR) -1 /* IVpnWebControl::put_LanguageID */
};
static const PRPC_STUB_FUNCTION IVpnWebControl_table[] =
{
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2,
NdrStubCall2
};
CInterfaceStubVtbl _IVpnWebControlStubVtbl =
{
&IID_IVpnWebControl,
&IVpnWebControl_ServerInfo,
23,
&IVpnWebControl_table[-3],
CStdStubBuffer_DELEGATING_METHODS
};
static const MIDL_STUB_DESC Object_StubDesc =
{
0,
NdrOleAllocate,
NdrOleFree,
0,
0,
0,
0,
0,
vpnweb__MIDL_TypeFormatString.Format,
1, /* -error bounds_check flag */
0x20000, /* Ndr library version */
0,
0x70001f4, /* MIDL Version 7.0.500 */
0,
UserMarshalRoutines,
0, /* notify & notify_flag routine table */
0x1, /* MIDL flag */
0, /* cs routines */
0, /* proxy/server info */
0
};
const CInterfaceProxyVtbl * _vpnweb_ProxyVtblList[] =
{
( CInterfaceProxyVtbl *) &_IVpnWebControlProxyVtbl,
0
};
const CInterfaceStubVtbl * _vpnweb_StubVtblList[] =
{
( CInterfaceStubVtbl *) &_IVpnWebControlStubVtbl,
0
};
PCInterfaceName const _vpnweb_InterfaceNamesList[] =
{
"IVpnWebControl",
0
};
const IID * _vpnweb_BaseIIDList[] =
{
&IID_IDispatch,
0
};
#define _vpnweb_CHECK_IID(n) IID_GENERIC_CHECK_IID( _vpnweb, pIID, n)
int __stdcall _vpnweb_IID_Lookup( const IID * pIID, int * pIndex )
{
if(!_vpnweb_CHECK_IID(0))
{
*pIndex = 0;
return 1;
}
return 0;
}
const ExtendedProxyFileInfo vpnweb_ProxyFileInfo =
{
(PCInterfaceProxyVtblList *) & _vpnweb_ProxyVtblList,
(PCInterfaceStubVtblList *) & _vpnweb_StubVtblList,
(const PCInterfaceName * ) & _vpnweb_InterfaceNamesList,
(const IID ** ) & _vpnweb_BaseIIDList,
& _vpnweb_IID_Lookup,
1,
2,
0, /* table of [async_uuid] interfaces */
0, /* Filler1 */
0, /* Filler2 */
0 /* Filler3 */
};
#pragma optimize("", on )
#if _MSC_VER >= 1200
#pragma warning(pop)
#endif
#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

1581
src/vpnweb/vpnwebdlg.c Normal file

File diff suppressed because it is too large Load Diff

122
src/vpnweb/vpnwebdlg.h Normal file
View File

@ -0,0 +1,122 @@
// SoftEther VPN Source Code
// Cedar Communication Module
//
// SoftEther VPN Server, Client and Bridge are free software under GPLv2.
//
// Copyright (c) 2012-2014 Daiyuu Nobori.
// Copyright (c) 2012-2014 SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) 2012-2014 SoftEther Corporation.
//
// All Rights Reserved.
//
// http://www.softether.org/
//
// Author: Daiyuu Nobori
// Comments: Tetsuo Sugiyama, Ph.D.
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 2 as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License version 2
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// THE LICENSE AGREEMENT IS ATTACHED ON THE SOURCE-CODE PACKAGE
// AS "LICENSE.TXT" FILE. READ THE TEXT FILE IN ADVANCE TO USE THE SOFTWARE.
//
//
// THIS SOFTWARE IS DEVELOPED IN JAPAN, AND DISTRIBUTED FROM JAPAN,
// UNDER JAPANESE LAWS. YOU MUST AGREE IN ADVANCE TO USE, COPY, MODIFY,
// MERGE, PUBLISH, DISTRIBUTE, SUBLICENSE, AND/OR SELL COPIES OF THIS
// SOFTWARE, THAT ANY JURIDICAL DISPUTES WHICH ARE CONCERNED TO THIS
// SOFTWARE OR ITS CONTENTS, AGAINST US (SOFTETHER PROJECT, SOFTETHER
// CORPORATION, DAIYUU NOBORI OR OTHER SUPPLIERS), OR ANY JURIDICAL
// DISPUTES AGAINST US WHICH ARE CAUSED BY ANY KIND OF USING, COPYING,
// MODIFYING, MERGING, PUBLISHING, DISTRIBUTING, SUBLICENSING, AND/OR
// SELLING COPIES OF THIS SOFTWARE SHALL BE REGARDED AS BE CONSTRUED AND
// CONTROLLED BY JAPANESE LAWS, AND YOU MUST FURTHER CONSENT TO
// EXCLUSIVE JURISDICTION AND VENUE IN THE COURTS SITTING IN TOKYO,
// JAPAN. YOU MUST WAIVE ALL DEFENSES OF LACK OF PERSONAL JURISDICTION
// AND FORUM NON CONVENIENS. PROCESS MAY BE SERVED ON EITHER PARTY IN
// THE MANNER AUTHORIZED BY APPLICABLE LAW OR COURT RULE.
//
// USE ONLY IN JAPAN. DO NOT USE IT IN OTHER COUNTRIES. IMPORTING THIS
// SOFTWARE INTO OTHER COUNTRIES IS AT YOUR OWN RISK. SOME COUNTRIES
// PROHIBIT ENCRYPTED COMMUNICATIONS. USING THIS SOFTWARE IN OTHER
// COUNTRIES MIGHT BE RESTRICTED.
//
//
// DEAR SECURITY EXPERTS
// ---------------------
//
// If you find a bug or a security vulnerability please kindly inform us
// about the problem immediately so that we can fix the security problem
// to protect a lot of users around the world as soon as possible.
//
// Our e-mail address for security reports is:
// softether-vpn-security [at] softether.org
//
// Please note that the above e-mail address is not a technical support
// inquiry address. If you need technical assistance, please visit
// http://www.softether.org/ and ask your question on the users forum.
//
// Thank you for your cooperation.
// vpnwebdlg.h
// Header of vpnwebdlg.c
#ifndef VPNWEBDLG_H
#define VPNWEBDLG_H
#ifdef __cplusplus
extern "C" {
#endif
extern HINSTANCE hDllInstance;
typedef struct VPNWEBDLG_INIT
{
char InstallerExeUrl[512];
char InstallerInfUrl[512];
char SettingUrl[512];
BOOL VpnServerManagerMode;
char VpnServerHostname[512];
char VpnServerHubName[512];
char VpnServerPassword[512];
char LanguageId[32];
HWND hControlWnd;
HWND hWnd;
} VPNWEBDLG_INIT;
HWND InitVpnWebDlg(VPNWEBDLG_INIT *init);
void FreeVpnWebDlg();
void GetVpnWebDlgSize(SIZE *size);
#ifdef __cplusplus
}
#endif
#endif // VPNWEBDLG_H
// Developed by SoftEther VPN Project at University of Tsukuba in Japan.
// Department of Computer Science has dozens of overly-enthusiastic geeks.
// Join us: http://www.tsukuba.ac.jp/english/admission/

View File

@ -0,0 +1,255 @@
// SoftEther VPN Source Code
// Cedar Communication Module
//
// SoftEther VPN Server, Client and Bridge are free software under GPLv2.
//
// Copyright (c) 2012-2014 Daiyuu Nobori.
// Copyright (c) 2012-2014 SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) 2012-2014 SoftEther Corporation.
//
// All Rights Reserved.
//
// http://www.softether.org/
//
// Author: Daiyuu Nobori
// Comments: Tetsuo Sugiyama, Ph.D.
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 2 as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License version 2
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// THE LICENSE AGREEMENT IS ATTACHED ON THE SOURCE-CODE PACKAGE
// AS "LICENSE.TXT" FILE. READ THE TEXT FILE IN ADVANCE TO USE THE SOFTWARE.
//
//
// THIS SOFTWARE IS DEVELOPED IN JAPAN, AND DISTRIBUTED FROM JAPAN,
// UNDER JAPANESE LAWS. YOU MUST AGREE IN ADVANCE TO USE, COPY, MODIFY,
// MERGE, PUBLISH, DISTRIBUTE, SUBLICENSE, AND/OR SELL COPIES OF THIS
// SOFTWARE, THAT ANY JURIDICAL DISPUTES WHICH ARE CONCERNED TO THIS
// SOFTWARE OR ITS CONTENTS, AGAINST US (SOFTETHER PROJECT, SOFTETHER
// CORPORATION, DAIYUU NOBORI OR OTHER SUPPLIERS), OR ANY JURIDICAL
// DISPUTES AGAINST US WHICH ARE CAUSED BY ANY KIND OF USING, COPYING,
// MODIFYING, MERGING, PUBLISHING, DISTRIBUTING, SUBLICENSING, AND/OR
// SELLING COPIES OF THIS SOFTWARE SHALL BE REGARDED AS BE CONSTRUED AND
// CONTROLLED BY JAPANESE LAWS, AND YOU MUST FURTHER CONSENT TO
// EXCLUSIVE JURISDICTION AND VENUE IN THE COURTS SITTING IN TOKYO,
// JAPAN. YOU MUST WAIVE ALL DEFENSES OF LACK OF PERSONAL JURISDICTION
// AND FORUM NON CONVENIENS. PROCESS MAY BE SERVED ON EITHER PARTY IN
// THE MANNER AUTHORIZED BY APPLICABLE LAW OR COURT RULE.
//
// USE ONLY IN JAPAN. DO NOT USE IT IN OTHER COUNTRIES. IMPORTING THIS
// SOFTWARE INTO OTHER COUNTRIES IS AT YOUR OWN RISK. SOME COUNTRIES
// PROHIBIT ENCRYPTED COMMUNICATIONS. USING THIS SOFTWARE IN OTHER
// COUNTRIES MIGHT BE RESTRICTED.
//
//
// DEAR SECURITY EXPERTS
// ---------------------
//
// If you find a bug or a security vulnerability please kindly inform us
// about the problem immediately so that we can fix the security problem
// to protect a lot of users around the world as soon as possible.
//
// Our e-mail address for security reports is:
// softether-vpn-security [at] softether.org
//
// Please note that the above e-mail address is not a technical support
// inquiry address. If you need technical assistance, please visit
// http://www.softether.org/ and ask your question on the users forum.
//
// Thank you for your cooperation.
// vpnwebdlg.h
// Header of vpnwebdlg.c (Inner)
#define VPNINSTALL_EXE_FILENAME "vpninstall.exe"
#define VPNINSTALL_EXE_FILENAME_TMP "vpninstall.exe.tmp"
#define VPNINSTALL_INF_FILENAME "vpninstall.inf"
#define VPNINSTALL_INF_BUILDTAG "VpnInstallBuild"
#include "resource.h"
extern HINSTANCE hDllInstance;
#define MESSAGE_OFFSET_JP IDS_MESSAGE_APPTITLE
#define MESSAGE_OFFSET_EN IDS_MESSAGE_APPTITLE_EN
#define MESSAGE_OFFSET_RES1 12000
#define MESSAGE_OFFSET_RES2 13000
static wchar_t *msgAppTitle = NULL;
static char *msgNotSupported = NULL;
static wchar_t *msgInfDownloag = NULL;
static wchar_t *msgInfDownloadFailed = NULL;
static wchar_t *msgBadInfFile = NULL;
static wchar_t *msgWriteFailed = NULL;
static wchar_t *msgDownloading = NULL;
static wchar_t *msgProcessFailed = NULL;
static wchar_t *msgProcessCreating =NULL;
static wchar_t *msgProcessCreated = NULL;
static wchar_t *msgWarning = NULL;
static wchar_t *msgWarningTitle = NULL;
static wchar_t *msgUserCancal = NULL;
static wchar_t *msgStartTextForVpnServer = NULL;
static wchar_t *msgButtonForVpnServer = NULL;
static wchar_t *msgProcessCreatedForVpnServer = NULL;
static wchar_t *msgStartTextForVpnClient = NULL;
static wchar_t *msgButtonForVpnClient = NULL;
static char *msgNoParam = NULL;
static void **_messages;
typedef enum MessageType {
_e_msgAppTitle,_e_msgNotSupported,_e_msgInfDownloag,_e_msgInfDownloadFailed,
_e_msgBadInfFile,_e_msgWriteFailed,_e_msgDownloading,_e_msgProcessFailed,
_e_msgProcessCreating,_e_msgProcessCreated,_e_msgWarning,_e_msgWarningTitle,
_e_msgUserCancal,_e_msgStartTextForVpnServer,_e_msgButtonForVpnServer,_e_msgProcessCreatedForVpnServer,
_e_msgNoParam, _e_msgStartTextForVpnClient, _e_msgButtonForVpnClient, _e_msgEnd} MessageType_t;
int currentPage=MESSAGE_OFFSET_EN;
int GetLocalizedMessageOffset(){
return currentPage;
}
wchar_t *LoadMessageW(enum MessageType e){
wchar_t *pTmp=(wchar_t*)calloc(sizeof(wchar_t),1024);
LoadStringW(hDllInstance,GetLocalizedMessageOffset()+e,pTmp,1024);
return pTmp;
}
char *LoadMessageA(enum MessageType e){
char *pTmp=(char*)calloc(sizeof(char),1024);
LoadStringA(hDllInstance,GetLocalizedMessageOffset()+e,pTmp,1024);
return pTmp;
}
void FreeMessage(void *p){
free(p);
}
int LoadTables(char *pTag){
if( stricmp(pTag,"JP")==0 || stricmp(pTag,"JA")==0){
currentPage=MESSAGE_OFFSET_JP;
}else if( stricmp(pTag,"EN")==0)
{
currentPage=MESSAGE_OFFSET_EN;
}
// currentPage=MESSAGE_OFFSET_EN;
msgAppTitle=LoadMessageW(_e_msgAppTitle);
msgNotSupported=LoadMessageA(_e_msgNotSupported);
msgInfDownloag=LoadMessageW(_e_msgInfDownloag);
msgInfDownloadFailed=LoadMessageW(_e_msgInfDownloadFailed);
msgBadInfFile=LoadMessageW(_e_msgBadInfFile);
msgWriteFailed=LoadMessageW(_e_msgWriteFailed);
msgDownloading=LoadMessageW(_e_msgDownloading);
msgProcessFailed=LoadMessageW(_e_msgProcessFailed);
msgProcessCreating=LoadMessageW(_e_msgProcessCreating);
msgProcessCreated=LoadMessageW(_e_msgProcessCreated);
msgWarning=LoadMessageW(_e_msgWarning);
msgWarningTitle=LoadMessageW(_e_msgWarningTitle);
msgUserCancal=LoadMessageW(_e_msgUserCancal);
msgStartTextForVpnServer=LoadMessageW(_e_msgStartTextForVpnServer);
msgButtonForVpnServer=LoadMessageW(_e_msgButtonForVpnServer);
msgProcessCreatedForVpnServer=LoadMessageW(_e_msgProcessCreatedForVpnServer);
msgNoParam=LoadMessageA(_e_msgNoParam);
msgStartTextForVpnClient=LoadMessageW(_e_msgStartTextForVpnClient);
msgButtonForVpnClient=LoadMessageW(_e_msgButtonForVpnClient);
return 0;
}
#define false 0
#define true 1
#define bool UINT
#define MAX_SIZE 512
typedef struct VW_FILE
{
UINT FileSize;
HINTERNET hInternet;
HINTERNET hHttpFile;
} VW_FILE;
typedef struct VW_TASK
{
HANDLE Thread;
bool Halt;
} VW_TASK;
INT_PTR CALLBACK VpnWebDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK VpnWebDummyDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
void VwOnInit(HWND hWnd);
void VwOnFree(HWND hWnd);
HANDLE VwNewThread(LPTHREAD_START_ROUTINE start, void *param);
void VwFreeThread(HANDLE h);
void VwCloseFile(VW_FILE *f);
UINT VwReadFile(VW_FILE *f, void *buf, UINT size);
UINT VwGetFileSize(VW_FILE *f);
VW_FILE *VwOpenFile(char *path);
void VwPrint(HWND hWnd, wchar_t *str);
DWORD CALLBACK VwTaskThread(void *param);
char *VwUrlToFileName(char *url);
UINT VwGetBuildFromVpnInstallInf(char *buf);
bool VwCheckFileDigitalSignature(HWND hWnd, char *name, bool *danger);
bool VwCheckExeSign(HWND hWnd, char *exe);
void *ZeroMalloc(UINT size);
void Free(void *p);
void *ReAlloc(void *p, UINT size);
void Zero(void *p, UINT size);
HANDLE FileCreate(char *name);
HANDLE FileOpen(char *name, bool write_mode);
void FileClose(HANDLE h);
bool FileRead(HANDLE h, void *buf, UINT size);
bool FileWrite(HANDLE h, void *buf, UINT size);
UINT64 FileSize(HANDLE h);
bool MakeDir(char *name);
UINT MsgBox(HWND hWnd, UINT flag, wchar_t *msg);
void Hide(HWND hWnd, UINT id);
void Show(HWND hWnd, UINT id);
void SetShow(HWND hWnd, UINT id, bool b);
bool IsShow(HWND hWnd, UINT id);
bool IsHide(HWND hWnd, UINT id);
void RemoveExStyle(HWND hWnd, UINT id, UINT style);
void SetExStyle(HWND hWnd, UINT id, UINT style);
UINT GetExStyle(HWND hWnd, UINT id);
void RemoveStyle(HWND hWnd, UINT id, UINT style);
void SetStyle(HWND hWnd, UINT id, UINT style);
UINT GetStyle(HWND hWnd, UINT id);
void Refresh(HWND hWnd);
void DoEvents(HWND hWnd);
void Disable(HWND hWnd, UINT id);
void Enable(HWND hWnd, UINT id);
void SetEnable(HWND hWnd, UINT id, bool b);
bool IsDisable(HWND hWnd, UINT id);
bool IsEnable(HWND hWnd, UINT id);
HWND DlgItem(HWND hWnd, UINT id);
bool IsSupportedOs();
void SetText(HWND hWnd, UINT id, wchar_t *str);
UINT SendMsg(HWND hWnd, UINT id, UINT msg, WPARAM wParam, LPARAM lParam);
void SetRange(HWND hWnd, UINT id, UINT start, UINT end);
void SetPos(HWND hWnd, UINT id, UINT pos);
// Developed by SoftEther VPN Project at University of Tsukuba in Japan.
// Department of Computer Science has dozens of overly-enthusiastic geeks.
// Join us: http://www.tsukuba.ac.jp/english/admission/