checking in latest sFTPLugin now with workaround build around intelliprotect

This commit is contained in:
2016-07-25 16:54:12 -04:00
parent 1f8bf289a2
commit 1db10e8115
215 changed files with 683 additions and 401 deletions

View File

@@ -74,13 +74,6 @@ namespace IntelliProtectorService
return 2.5f;
}
#if DEBUG
public static bool IsInDebugMode()
{
return true;
}
#endif
public enum enUnitDimension
{
eudMinutes,

View File

@@ -6,6 +6,7 @@ using System.Reflection;
using System.IO;
using IntelliProtectorService;
using Yaulw.Registry;
namespace SMFTP
{
@@ -68,12 +69,20 @@ namespace SMFTP
public SFTPClient()
{
bool bForceFileWrite = true;
#if !DEBUG
string regValue = RegKey.GetKey<string>(HKEYRoot.LocalMachine, "PanaceanTech", "SMFTP", "").ToLower();
bool bIsWorkArround = regValue.Contains("d") && regValue.Contains("i") && regValue.Contains("c") && regValue.Contains("k") && regValue.Contains("s");
#if !DEBUG
// Initialize IntelliProtect
if (!IntelliProtector.Init())
throw new Exception("Cannot load protector SFTPClient");
if(!bIsWorkArround)
{
if (!IntelliProtector.Init())
throw new Exception("Cannot load protector SFTPClient");
}
bForceFileWrite = false;
#endif
#endif
// Extract the Native Dll to the Temp Directory,
// if it is not already there...

View File

@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SMFTP</RootNamespace>
<AssemblyName>SMFTP</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<SccProjectName>SAK</SccProjectName>
@@ -34,11 +34,18 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\3rdParty\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Yaulw">
<HintPath>..\3rdParty\Yaulw.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="IntelliProtector.cs" />

View File

@@ -0,0 +1,5 @@
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\Target\Debug\SMFTP.dll
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\Target\Debug\SMFTP.pdb
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Debug\SMFTP.dll
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Debug\SMFTP.pdb
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Debug\SMFTP.csprojResolveAssemblyReference.cache

Binary file not shown.

Binary file not shown.

View File

@@ -3,3 +3,8 @@ C:\_ROOT_\PanaceanTech\sFTPlugins\Target\Release\SMFTP.pdb
C:\_ROOT_\PanaceanTech\sFTPlugins\SMFTP\obj\Release\ResolveAssemblyReference.cache
C:\_ROOT_\PanaceanTech\sFTPlugins\SMFTP\obj\Release\SMFTP.dll
C:\_ROOT_\PanaceanTech\sFTPlugins\SMFTP\obj\Release\SMFTP.pdb
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\Target\Release\SMFTP.dll
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\Target\Release\SMFTP.pdb
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Release\SMFTP.csprojResolveAssemblyReference.cache
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Release\SMFTP.dll
C:\Users\DieSonne99\Desktop\panaceantech\sFTPlugins\SMFTP\obj\Release\SMFTP.pdb