$ show RamonUnch/AltSnap
AltSnap is a native Windows desktop utility that lets users move, resize, and manage windows by holding Alt and dragging with the mouse. In production it runs as a tray application and loads a companion hooks.dll into its own process; that DLL installs low-level keyboard and mouse hooks, detects Alt+click/drag gestures, and manipulates window placement through Win32 APIs. It also implements Aero-style snapping, configurable snap layouts/zones, blacklists, global hotkeys, MDI handling, a large action system assignable to mouse buttons/titlebar clicks, and an optional elevation path. The project deliberately avoids DLL injection into other processes; instead, input is captured via WH_KEYBOARD_LL/WH_MOUSE_LL and heavy window movement is offloaded to a worker thread to keep the hooks responsive.
The LLM identified 3 files worth highlighting for reuse:
Generates small executable stubs on the fly for x86/x64 callback needs, providing a generic way to create data-carrying function pointers or hook trampolines without per-platform static assembly scaffolding. It is self-contained and can be extracted into any native Windows project that needs lightweight runtime-generated thunks.
Provides a compact set of string, memory, and integer-conversion helpers plus an optional debug allocator that tracks allocations with magic values to detect leaks and use-after-free. This is a reusable pattern for small freestanding Windows tools that want to avoid the CRT while retaining memory diagnostics.
Runtime-resolves Win32 API entry points so a single build can support very old Windows versions through Windows 11, and also provides generic dynamic-array helpers such as ListAppend/ListFree. The dynamic-API-loading pattern is directly reusable in any Win32 application that must gracefully degrade on older systems without link-time dependencies on newer exports.