windows: Add some more WIN32 stuff.
process: Windows error checking and clean up.