Skip to content

Commit

Permalink
Added easyhook as a nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
xenolightning committed Jul 20, 2016
1 parent 2a9770e commit 5008f61
Show file tree
Hide file tree
Showing 25 changed files with 16 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<AssemblyOriginatorKeyFile>AudioSwitcherApi.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="EasyHook, Version=2.7.5870.0, Culture=neutral, PublicKeyToken=4b580fca19d0b0c5, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\EasyHook\NetFX3.5\EasyHook.dll</HintPath>
<Reference Include="EasyHook, Version=2.7.6035.0, Culture=neutral, PublicKeyToken=4b580fca19d0b0c5, processorArchitecture=MSIL">
<HintPath>..\packages\EasyHook.2.7.6035\lib\net35\EasyHook.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -72,30 +72,25 @@
</ItemGroup>
<ItemGroup>
<None Include="AudioSwitcherApi.pfx" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyHook32.dll">
<Link>EasyHook32.dll</Link>
<Content Include="EasyHook32.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyHook32Svc.exe">
<Link>EasyHook32Svc.exe</Link>
<Content Include="EasyHook32Svc.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyHook64.dll">
<Link>EasyHook64.dll</Link>
<Content Include="EasyHook64.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyHook64Svc.exe">
<Link>EasyHook64Svc.exe</Link>
<Content Include="EasyHook64Svc.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyLoad32.dll">
<Link>EasyLoad32.dll</Link>
<Content Include="EasyLoad32.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\lib\EasyHook\NetFX3.5\EasyLoad64.dll">
<Link>EasyLoad64.dll</Link>
<Content Include="EasyLoad64.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion AudioSwitcher.AudioApi.Hooking/DefaultDeviceHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ public bool Hook(int processId)

return true;
}
catch (Exception)
catch (Exception ex)
{
Status = EHookStatus.Inactive;
Error?.Invoke(_hookedProcessId, ex);
}


Expand Down
Binary file added AudioSwitcher.AudioApi.Hooking/EasyHook32.dll
Binary file not shown.
Binary file not shown.
Binary file added AudioSwitcher.AudioApi.Hooking/EasyHook64.dll
Binary file not shown.
Binary file not shown.
Binary file added AudioSwitcher.AudioApi.Hooking/EasyLoad32.dll
Binary file not shown.
Binary file added AudioSwitcher.AudioApi.Hooking/EasyLoad64.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions AudioSwitcher.AudioApi.Hooking/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EasyHook" version="2.7.6035" targetFramework="net35" />
</packages>
Binary file removed lib/EasyHook/NetFX3.5/EasyHook.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyHook32.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyHook32Svc.exe
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyHook64.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyHook64Svc.exe
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyLoad32.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX3.5/EasyLoad64.dll
Binary file not shown.
19 changes: 0 additions & 19 deletions lib/EasyHook/NetFX3.5/LICENSE

This file was deleted.

Binary file removed lib/EasyHook/NetFX4.0/EasyHook.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyHook32.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyHook32Svc.exe
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyHook64.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyHook64Svc.exe
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyLoad32.dll
Binary file not shown.
Binary file removed lib/EasyHook/NetFX4.0/EasyLoad64.dll
Binary file not shown.
19 changes: 0 additions & 19 deletions lib/EasyHook/NetFX4.0/LICENSE

This file was deleted.

0 comments on commit 5008f61

Please sign in to comment.