~/projects/windows-internals-zig/README.md

Windows Internals / Zig Tooling

status: ongoing source: private type: systems programming
zigwin32 apigdipe formatloaders

what it is

A collection of small, focused Zig programs that exercise the Win32 API directly — no frameworks, no runtime abstractions between the code and the operating system.

problem / objective

Security research on Windows requires understanding what the OS actually does below the layer most languages hide. The objective: build working knowledge of dynamic library loading, module resolution, PE structure, and GDI rendering by implementing each piece by hand.

environment

architecture / design

Each experiment is a single-purpose program built to answer one question about platform behavior — kept deliberately small so the mechanism under study is the whole program, not a side effect of a larger codebase.

technical implementation

security considerations / methodology

All experiments are platform-behavior probes — they observe documented API behavior rather than exploit anything. The same knowledge applies in both directions: writing tooling, and recognizing what anomalous loading or rendering behavior looks like.

interesting problems encountered

what i built

results

Working, minimal demonstrations of each mechanism studied.

evidence

Zig experiment — runtime module resolution via GetModuleHandleA, LoadLibraryA, GetProcAddress
$ zig win32 experiment — module handles and MessageBoxA resolved at runtime (GetModuleHandleA / LoadLibraryA / GetProcAddress); no static user32 import
Source stays private for now. A sanitized subset of these experiments may be published to a public repo — this page documents the work in the meantime.

what i learned / next steps

Comfort operating at the Win32 API layer without framework support. Next: expanding into additional loader and process-internals areas that feed the security research.