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
1 answer

C# - hook explorer.exe

I have download a source code to hook and monitor files the link: http://code.google.com/p/easyhook-continuing-detours/downloads/list but when executing the program "FileMon." . i got the following error: Could not load file or assembly 'EasyHook,…
Ahmed M. Taher
  • 663
  • 1
  • 7
  • 15
0
votes
0 answers

Python for windows api hooking

Is it possible to write the Windows API hook / DLL injection in Python (in conjunction with MS Detours or Easyhook as a framework)? I can't find really information about it, it seems that most of the people has written this code in C++ or C#?
0
votes
0 answers

CreateProcessW hook is not working properly

I am creating an application where I use EasyHook to hook into the explorer.exe process and listen for the CreateProcessW method call from kernel32.dll. The program intercepts CreateProcessW only if the user runs the file by double-clicking on it…
Nobody
  • 1
  • 3
0
votes
1 answer

EasyHook stop catching some messages

As soon EasyHook EasyHook64.dll intercepts the first DefWindowProcW message, and from it starts a thread, it does not catch any DefWindowProcW anymore: |___ DefWindowProcW (caught) |-- |-- |-- |-- DefWindowProcW (don't…
user12733526
0
votes
0 answers

C++ - Passing object to return value of hooked function

Im quite new to C++ and Im currently learning Function Hooking. In my case the target application´s function I want to hook returns an class looking like this: EventsForMe.dll: RandomEventListener GetEventReg() { return…
Malte
  • 40
  • 5
0
votes
0 answers

EasyHook library use

I looked at the EasyHook and their tutorial samples and even implemented LocalHook with my own API from advapi32.dll, the LocalHook worked when I was making calls from the same app where my hooking code was running, but no interception occurred when…
Leon
  • 165
  • 12
0
votes
0 answers

What Windows Native API Functions take filesystem paths as arguments?

I'm trying to build a tool that hooks into the Windows Native API and monitors/denies filesystem access by various applications. I am using the easyhook library. I have chosen to only hook the lower level NTAPI functions because I found a lot of…
enzeinzen
  • 11
  • 4
0
votes
1 answer

How to assign value to LPVOID buffer of ReadFile

I am developing a win32 API hook program. Accordingly to my understanding, when a program calls ReadFile for a particular file, the content of that file is copied to lpBuffer(see the definition below), ReadFile definition: BOOL ReadFile( HANDLE …
Md Sajid
  • 131
  • 1
  • 1
  • 13
0
votes
1 answer

(EasyHook) DLL not recognized from within same project

Apologies if this is a stupid question; I'm not overly familiar with Visual Studio and definitely not the new version. I am trying to hook calls to TextOutA from a Windows application using EasyHook, roughly following this tutorial, in Visual Studio…
0
votes
1 answer

I need to prevent some hacks modify game memory by hooking some windows API

Seeing easy hook examples I was able to create a hook for openProcessMemory in order to prevent some hacks mess up with some games. The case I'm facing is that some hacks do it's job so quickly that i can't make the injection in time. For…
0
votes
1 answer

Is there a way to save raw binary data from a registry call to a string without casting it as a string?

I'm working on an utility to hook various bits of the Windows API used by different applications. The aim of the project is, at the moment to make any application portable by redirecting filesystem and registry calls to custom locations using…
enzeinzen
  • 11
  • 4
0
votes
0 answers

How to assign string value to phkey?

I'm working on an utility to hook various bits of the Windows API used by different applications. The aim of the project is, at the moment to make any application portable by redirecting filesystem and registry calls to custom locations using…
enzeinzen
  • 11
  • 4
0
votes
0 answers

C# Easyhook Weird behaviour

Im curently trying to build my application that hook system calls of other process using EasyHook library. I'v instlaled latest version via nuget packet manager, and made simple C# souliton that consists of dll and injector. Injector code is taken…
255h
  • 11
  • 3
0
votes
0 answers

How to install hook procedure that monitors keystroke messages (WH_KEYBOARD_DLL or WH_KEYBOARD) using Easyhook C++

I'm using Easyhook to hook keystrokes, but I don't understand how Easyhook works. How to install a hook to hook KeyboardProc (callback function). This is API of the LhInstallHook: static void LhInstallHook( IntPtr InEntryPoint, IntPtr…
carry
  • 11
  • 2
0
votes
1 answer

can not find easyhook64.dll

I downloaded easyhook package "EasyHook 2.7.6789.0 Binaries .NET 3.5/4.0 (zip)" and then link dll with my project in visual studio 2015 (first add my easyhook in this path C/C++->General->Additional Include Directories and second add .lib file to…
Shirin
  • 11
  • 3