WriteFile and ReadFile does not check for INVALID_HANDLE_VALUE