Skip to content

Instantly share code, notes, and snippets.

View kolanski's full-sized avatar
🏠
Working from home

Nikolay Kolanski kolanski

🏠
Working from home
View GitHub Profile
@kolanski
kolanski / hook.c
Created August 10, 2022 16:02 — forked from mmozeiko/hook.c
reads process stdout + stderr and prints it out as it becomes available
// compile this to hook.dll
// for example, with MSVC: cl.exe /LD /MT /O2 hook.c /Fehook.dll
#include <windows.h>
// get this from https://github.com/kubo/plthook
#include "plthook_win32.c"
static plthook_t* hook;