1.  修正一处宏定义导致代码编译错误问题
2.  隧道管理服务,服务端测试程序增加管理员运行权限需求
This commit is contained in:
黄昕 2023-08-23 09:05:38 +08:00
parent 2d9da7b215
commit eb0eefe354
3 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,7 @@ template<class T1> int PlatformProtolGetMessage(const TCHAR *pUrlPath, T1 *pRsp)
} }
#endif #endif
#if !USER_REAL_PLATFORM
template<class T1, class T2> int PlatformProtolPostMessage(const TCHAR *pUrlPath, T1 *pReq, T2 *pRsp) { template<class T1, class T2> int PlatformProtolPostMessage(const TCHAR *pUrlPath, T1 *pReq, T2 *pRsp) {
int ret; int ret;
httplib::Result res; httplib::Result res;
@ -405,6 +406,7 @@ template<class T1, class T2> int PlatformProtolPostMessage(const TCHAR *pUrlPath
return ERR_SUCCESS; return ERR_SUCCESS;
} }
#endif
template int ProtolPostMessage(const TCHAR *pUrlPath, template int ProtolPostMessage(const TCHAR *pUrlPath,
ProtocolRequest<ReqGetUserCfgParams> *pReq, ProtocolRequest<ReqGetUserCfgParams> *pReq,

View File

@ -115,6 +115,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(SolutionDir)$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <AdditionalLibraryDirectories>$(SolutionDir)$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>NetTunnelSDK.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>NetTunnelSDK.lib;%(AdditionalDependencies)</AdditionalDependencies>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

View File

@ -108,6 +108,7 @@
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link> </Link>
<PostBuildEvent> <PostBuildEvent>
<Command>copy /y $(TargetDir)*.exe $(SolutionDir)\NetTunnelApp\bin\$(ConfigurationName)\</Command> <Command>copy /y $(TargetDir)*.exe $(SolutionDir)\NetTunnelApp\bin\$(ConfigurationName)\</Command>