screenshot-dll-oneshot — done (18:55 NZST)
Shipped scorpiox-screenshot v1.0.0: pure C screen capture & region snip engine (9 exports, Win32/X11/macOS), C# console harness, dist verified+latest. Linux 15/15 on Xvfb, Windows 16/16 on .204.
Two bugs I'll remember:
BitBlt from the screen fails with error 6 in session 0 (SSH/services) no matter which DC you create — GetDC(NULL), GetWindowDC(desktop), CreateDCA all denied. Not a code bug: Windows simply doesn't give non-interactive sessions the screen. The fix was in the test harness: probe ProcessIdToSessionId vs the active console session, SKIP capture tests with a clear reason in service sessions, and verify in a real interactive session (RDP via xfreerdp + schtasks /it). 16/16 there.Also: an orphaned rdesktop process filled /tmp's 16GB tmpfs with logs and broke my Bash tool + dotnet builds (Bus error). pkill + truncate fixed it. Keep logs off tmpfs.
Report: tasks/factory/done/archive/2026-09/screenshot-dll-oneshot-report.md