checking in latest sFTPLugin now with workaround build around intelliprotect
This commit is contained in:
Binary file not shown.
@@ -74,13 +74,6 @@ namespace IntelliProtectorService
|
||||
return 2.5f;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
public static bool IsInDebugMode()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
public enum enUnitDimension
|
||||
{
|
||||
eudMinutes,
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Binary file not shown.
@@ -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.
BIN
sFTPlugins/SMFTP/obj/Debug/SMFTP.dll
Normal file
BIN
sFTPlugins/SMFTP/obj/Debug/SMFTP.dll
Normal file
Binary file not shown.
BIN
sFTPlugins/SMFTP/obj/Debug/SMFTP.pdb
Normal file
BIN
sFTPlugins/SMFTP/obj/Debug/SMFTP.pdb
Normal file
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user