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

The given user library does not export a proper Run method

I'm using EasyHook to inject a DLL into a process (Duh!) However, when the Inject function is called, I get this error message: "The given user library does not export a proper Run(EasyHook.InjectionLoader+REMOTE_ENTRY_INFO) method in the…
0
votes
2 answers

External application crashes after using easyhook and one function to send information from the dll to my c# code

I'm using easyhook and after exiting my application, the one which was hooked crashes. I know where it happens but not how to solve it. I'm hooking DrawText. I do nothing: int DrawText_Hooked(IntPtr hdc, [In, Out,…
сами J.D.
  • 483
  • 2
  • 5
  • 19
0
votes
1 answer

Hooking extTextOut problems

I am working on a dll injection soft in c#, the injected dll is also in c# and i'am using pinvoke for certain system functions. When using extTextOut i get the string scrambled and the lines get mixed together What am i doing wrong? I hooked…
psergiu
  • 1
  • 2
0
votes
1 answer

DLL exported function signature

The easyhook.h header file has this function declaration. typedef void __stdcall REMOTE_ENTRY_POINT(REMOTE_ENTRY_INFO* InRemoteInfo); The easyhook creator stated this: Your injected native DLL must have a REMOTE_ENTRY_POINT exported as…
Lfod
  • 581
  • 5
  • 14
0
votes
0 answers

Extract text location by hooking ExtTextOutW

I have question regarding the Windows APIs RedrawWindow , ExtTextOut and BitBlt . I am hooking the ExtTextOut to extract the text location on screen, if I call RedrawWindow with parameter lprcUpdate = NULL and hrgnUpdate = NULL: …
duongkha
  • 71
  • 6
0
votes
0 answers

Hook to extract text from Windows Explorer

I am trying to hook in to draw text API of Windows (DrawTextW,ExtTextOutW) to get the text but I can't get the text location correctly in address bar of Windows Explorer Seems it has specific way in drawing. Anyone knows how it draws? Please…
duongkha
  • 71
  • 6
0
votes
2 answers

EasyHook: Inject 64 bit dll from 32 bit app in native C app?

Is it possible to inject 64 bit dll into 64 bit host app from 32 bit app in native c? (not C# or managed c++) I compiled the dll I want to inject in both 32 and 64 form, but when I…
st.
  • 593
  • 1
  • 5
  • 12
0
votes
1 answer

Easyhook Send Packet Trouble

I injected a dll into a game client and hooked send/recv using Easyhook. I can easily monitor the packets that the client send to the server and receive from the server. I want to send my own packets so I made a function like this : public static…
0
votes
1 answer

c# hookinig API

I am working on an anticheat and I would like to hook APIs like Read/WriteProcessMemory, OpenProcess and maybe some more to check if it reads or writes some data to/from the game. But I am not that experienced programmer to do it on my own so I…
LukAss741
  • 771
  • 1
  • 7
  • 24
0
votes
1 answer

Handling the hook function

I'm trying to use EasyHook in C# to properly hook into a method from a COM object (unmanaged). I was able to determine the address of the method of the COM object and I can properly trigger my hook function. I did it this way, being the rest of the…
Żubrówka
  • 730
  • 1
  • 10
  • 24
0
votes
2 answers

Winsock LSP vs API hooking

I need your advices what to use - Layered Service Provider or just load mine DLL in all process and hook necessary functions using, NCodeHook or EasyHook library. This is needed for inspection of HTTP traffic. P.S. This need to be done for…
let4be
  • 1,048
  • 11
  • 30
-1
votes
1 answer

NullReferenceException when setting a out parameter in c#

I got a unsafe assembly using easyhook in c#.. this code bellows works well but sum time, I got a NullReferenceException when this method is called.. The instance of this class is a Singleton pattern It passe several time and one point it got a null…
-1
votes
1 answer

How to get a screenshot from the background window DirectX

I was looking for examples of how to make a screenshot of an inactive window, but I did not find it. I want to take a screenshot of the game that works in the window, and not in full screen mode. Which can be blocked by other windows. I found some…
-1
votes
1 answer

EasyHook LoadLibrary fails in crash

I am trying to use EasyHook to detect native LoadLibrary calls. It indeed detects the loading of libraries, however the process results in freezing. This is because the LoadLibrary_Hook method below cannot load the dll or library since It returns 0…
DreTaX
  • 760
  • 2
  • 9
  • 22
-1
votes
1 answer

Trying to Hook DoDragDrop to explorer but delegate method is not calling

"Ole32","DoDragDrop" function Hooking to the explorer is successful but whenever i drag a file in explorer my DoDragDropHook function is not calling, am new to the hooking concepts and i trying for this from last 3 months but till now no …
Krish
  • 376
  • 3
  • 14