Category : hook

I need help with this, I know how to hook functions and view values, but there are functions that have classes and structures where they perform different activities in each send information. My function and class: https://i.imgur.com/jIgLsJu.jpg I want the actions to appear as in this image: https://i.imgur.com/2AGfv4N.png Any sources or suggestions? Source: Windows Questions ..

Read more

I tried to implement an automation tool, and got problem when intercepting IME (Windows 10’s default Microsoft IME) input Unicode strings (such as Japanese/Chinese). I’ve written a 64-bit dll for injection to other processes/windows. The dll is as follows, #include <windows.h> #include <fstream> #include <locale> // for output only static wchar_t* className(HWND hwnd) { static ..

Read more

I’m trying to do DLL Injection using Golang. Code: package main import ( "fmt" "github.com/JamesHovious/w32" "syscall" ) func main(){ //just a random dll dllPath := "C:WindowsSystem32wevtapi.dll" procID := 8124 hProc, handleErr := w32.OpenProcess(w32.PROCESS_ALL_ACCESS, false, uint32(procID)) if handleErr != nil{ fmt.Println("handleErr:", handleErr) } kernel32DLL, dllLoadErr := syscall.LoadLibrary("kernel32.dll") if dllLoadErr != nil{ fmt.Println("dllLoadErr:", dllLoadErr) } addr, addrErr ..

Read more

I have created a dummy window inside of my dll as an IPC method: Window procedure: LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_COPYDATA: { //…. } case WM_DESTROY: case WM_QUIT: OutputDebugString(L"WM_QUIT"); PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int Main(LPCWSTR dummy_class_name) { ..

Read more

This is the way I invoke dll and set hooks: #include <iostream> #include <Max4MinCore/HookHandler.h> int main() { std::cout << "Hello World!n"; HMODULE CoreModule = LoadLibrary(L"Max4MinCore.dll"); if (CoreModule == NULL) { std::cerr << "Failed to load Max4MinCore.dll" << std::endl; return 1; } FARPROC HookHandler = GetProcAddress(CoreModule, "HookHandler"); if (HookHandler == NULL) { std::cerr << "Failed to ..

Read more

I have two monitors, one of which is a touch screen device. I want to prevent the mouse from moving to the touch screen device when a touch event is triggered. So , I use Hook_LL static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam) { if (nCode >= 0) { var info = (MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)); ..

Read more