Skip to content

Commit

Permalink
Updated sample projects.
Browse files Browse the repository at this point in the history
Deviare InProc submodule was updated too.
  • Loading branch information
scnale committed Feb 21, 2017
1 parent 12e20fe commit cf51854
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 80 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG
Expand Up @@ -2,6 +2,15 @@
============
* C# plugins may not work if "RegisterClassA" or "RegisterClassW" Apis are hooked because CoInitialize(Ex) calls RegisterClass on STA and, at this point, COM initialization is not complete yet.

Version 2.8.1
=============
Deviare InProc engine was updated to the latest version. It includes many fixes. For details on these, please check the commit logs in its repository.
A brief summary follows:
-Several improvements to the injection routines.
-Fixed a memory leak that occurred under a specific race condition during injection.
-Fixed an issue where threads would get deadlocked after the parent process was injected.
Do note that x86 -> x64 process injection isn't supported by Deviare 2 yet.

Version 2.8.0
=============
-Internal hooking engine is implemented by Deviare InProc now.
Expand Down
2 changes: 1 addition & 1 deletion Externals/DeviareInProc
11 changes: 6 additions & 5 deletions Samples/CSharp/COMHookingBasis/COMHookingBasis.csproj
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>COMHookingBasis</RootNamespace>
<AssemblyName>COMHookingBasis</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
Expand All @@ -32,6 +32,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<AssemblyName>COMHookingBasis64</AssemblyName>
Expand Down Expand Up @@ -89,12 +90,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\bin\Nektra.Deviare2.dll</HintPath>
<Private>False</Private>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
Expand All @@ -112,6 +110,9 @@
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
3 changes: 3 additions & 0 deletions Samples/CSharp/COMHookingBasis/app.config
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
2 changes: 0 additions & 2 deletions Samples/CSharp/Console/Aga.Controls/Aga.Controls.csproj
Expand Up @@ -70,11 +70,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="GifDecoder.cs" />
Expand Down
24 changes: 1 addition & 23 deletions Samples/CSharp/Console/CSharpConsole.csproj
Expand Up @@ -81,21 +81,9 @@
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.XML" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controls\NodeSorter.cs" />
Expand Down Expand Up @@ -278,16 +266,6 @@
</Compile>
<Compile Include="Views\UIUpdater.cs" />
</ItemGroup>
<ItemGroup>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<ItemGroup>
<Content Include="Data\FunctionTypes.xml" />
<Content Include="How to Use the Console.txt" />
Expand Down
17 changes: 4 additions & 13 deletions Samples/CSharp/FilePlugin/FilePlugin.csproj
Expand Up @@ -10,13 +10,14 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FilePlugin</RootNamespace>
<AssemblyName>CSharpFilePlugin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -40,20 +41,10 @@
<ItemGroup>
<Reference Include="Nektra.Deviare2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ca654cbae704bad4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Bin\Nektra.Deviare2.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\..\..\bin\Nektra.Deviare2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DeviarePlugin.cs" />
Expand Down
6 changes: 0 additions & 6 deletions Samples/CSharp/PrintLogger/PrintLogger.cs
Expand Up @@ -28,12 +28,6 @@
**/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Nektra.Deviare2;

Expand Down
17 changes: 4 additions & 13 deletions Samples/CSharp/PrintLogger/PrintLogger.csproj
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PrintLogger</RootNamespace>
<AssemblyName>PrintLogger</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NoWin32Manifest>true</NoWin32Manifest>
<FileUpgradeFlags>
Expand All @@ -33,6 +33,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<AssemblyName>PrintLogger64</AssemblyName>
Expand Down Expand Up @@ -76,22 +77,11 @@
<Reference Include="Nektra.Deviare2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ca654cbae704bad4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\bin\Nektra.Deviare2.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="PrintLogger.cs">
Expand All @@ -115,6 +105,7 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Samples/CSharp/PrintLogger/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Samples/CSharp/PrintLogger/app.config
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
15 changes: 3 additions & 12 deletions Samples/CSharp/RegistryPlugin/RegistryPlugin.csproj
Expand Up @@ -10,13 +10,14 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RegistryPlugin</RootNamespace>
<AssemblyName>CSharpRegistryPlugin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -42,19 +43,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Bin\Nektra.Deviare2.dll</HintPath>
<Private>True</Private>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DeviarePlugin.cs" />
Expand Down
4 changes: 2 additions & 2 deletions Source/version.ver
Expand Up @@ -27,5 +27,5 @@
*
**/

#define PRODUCT_VERSION 2,8,0,0
#define PRODUCT_VERSION_SZ "2, 8, 0, 0"
#define PRODUCT_VERSION 2,8,1,0
#define PRODUCT_VERSION_SZ "2, 8, 1, 0"

0 comments on commit cf51854

Please sign in to comment.