Questions tagged [easyhook]

Use this tag when your code uses the EasyHook open-source library that supports hooking unmanaged APIs with managed code.

Use this tag when your code uses the EasyHook open-source library that supports hooking unmanaged APIs with managed code.

EasyHook makes it possible to extend (via hooking) unmanaged code APIs with pure managed functions, from within a fully managed environment on 32- or 64-bit Windows. EasyHook supports injecting assemblies built for .NET Framework as well as native DLLs.

108 questions
0
votes
0 answers

Make 3rd Party program on Windows believe a HID device is connected

It may seems to be an unusual question at first but let me explain what I try to do. I've developed a program which is able to hook into a 3rd party program called PS4 Remote Play. The PS4 Remote Play program only allows you to use a real Dualshock…
grill2010
  • 574
  • 6
  • 23
0
votes
1 answer

API Monitor Type Definitions (XML) to C++ Code

I'm a C# programmer who's doing some reverse-engineering work and I'm having some trouble. What I'm trying to do is to hook a library function in a remote process and log some data. I've used API Monitor with some custom type and function…
kazmerk
  • 11
  • 2
0
votes
0 answers

Windows Printer API Hooking using Easyhook

I'm trying to Hook the WritePrinter function present in winspool.drv using Easyhook RhInstallLibrary. Injector.cpp NTSTATUS nt = RhInjectLibrary( processId, // The process to inject into 0, // ThreadId to wake up upon injection …
Kartikeya Rana
  • 200
  • 3
  • 9
0
votes
1 answer

Hook recv and unreadable buffer

I have an application that shows a WebBrowser component, which contains a flash application that create a XMLSocket with a server. I'm now trying to hook recv ( luckly a LocalHook) for log purpuse, but when I try to read the socket content I get…
kaharas
  • 597
  • 2
  • 17
  • 39
0
votes
1 answer

Hook flash application

if I load in my C# application a flash application A that opens a socket with a server B, is it possible to setup a local hook so that i can read the packets exchanged between A and the server B? I may obtain the flash application sources if…
kaharas
  • 597
  • 2
  • 17
  • 39
0
votes
1 answer

How to avoid easyhook injecting dll multiple times?

The target app could be injected multiple times with same dll. This will lead the same function be hooked multiple times. Do you know if there is a way to detect if the target app is already injected? or is there a way to avoid multiple injection?
user1633272
  • 2,007
  • 5
  • 25
  • 48
0
votes
0 answers

Screenshot using SharpDX and EasyHook transparent

I have been struggling in taking screenshots with DirectX, the problem is, it's working but seems to be missing some colors (black outline is missing for example), and some stuff that is also rendered by DX doesn't show. I have uploaded the images…
tiagocardosoweb
  • 373
  • 3
  • 14
0
votes
0 answers

Hook a method's call of another .net process

I have .net app. It has some methods that i'd like to monitor (hook) Using Easyhook i can inject into running this process. But how can i find method's address for hooking?
Yuriy Vikulov
  • 2,469
  • 5
  • 25
  • 32
0
votes
2 answers

Unable to hook DoDragDrop method defined in Ole32.dll

I have been developing a Outlook plugin where I want to intercept the drag drop of attachments so that I can change the property of IDataObject but somehow my callback function is never executed.I have been using EasyHook open library to achieve the…
abhinov
  • 125
  • 1
  • 3
  • 12
0
votes
1 answer

How to use Easyhook with non managed executable

I am trying to do some hooking in c# (I'd rather not use Detours or c++) so i have been using EasyHook. https://easyhook.github.io/ However When i'm doing this Config.Register( "This description can be anything.", @"SomePathToAnExecutable.exe",…
Lee Englestone
  • 4,545
  • 13
  • 51
  • 85
0
votes
1 answer

EasyHook does not work for other threads

I'm currently trying to hook the "MessageBeep" function in user32.dll by using EasyHook. If im running [this example][1] everything seems to work fine. But if I replace the thread-ID in lines 52 and 60 with the thread-ID of my test application the…
0
votes
1 answer

Direct3DHook Send keyboard & mouse events to hooked application

I'm using Windows 10 I've just been playing with Direct3DHook, which is built on EasyHook, and it works great. I would like to be able to use this tool to hook a Direct3D application. I'd then like to route keyboard and mouse events to the hooked…
pookie
  • 3,796
  • 6
  • 49
  • 105
0
votes
0 answers

Hooking GetVolumeInformation to return a custom filesystem type

I've been attempting (and miserably failing!) at learning how to use Easyhook. I'm trying to hook and return a custom filesystem name for all GetVolumeInformation calls. The following code does hook and I get the filesystem name in debugview, but it…
uhoh
  • 1
  • 1
0
votes
0 answers

Hooking windows functions

I am interested in hooking the function which return the content of a directory in Windows. I have came across a tool called EasyHook, however I saw this in their page Unlike what some (commercial) hooking libraries out there are advertising to…
Or Ami
  • 91
  • 1
  • 8
0
votes
0 answers

What hook do I have to do to know when image is loaded and painted? EasyHook/DLL Injection

I'm using easyHook to do a DLL injection to know when a text is written in a 3d party application window. This application also draws an image in its windows. I know the path/name of this picture (let's say path is:…
сами J.D.
  • 483
  • 2
  • 5
  • 19