Win32 file or pipe wrapper