Skip to content

Instantly share code, notes, and snippets.

View OrangeLightning219's full-sized avatar

Marcel Mikołajko OrangeLightning219

View GitHub Profile
@mmozeiko
mmozeiko / ods.c
Created April 16, 2019 19:20
Example how to capture OutputDebugString on Windows
#include <windows.h>
#include <intrin.h>
#define Assert(x) do { if (!(x)) __debugbreak(); } while (0)
static struct
{
DWORD process_id;
char data[4096 - sizeof(DWORD)];
}* ods_buffer;