(WIP) PUP-2382 - Rewrite all Windows API code with FFI