35 bool const mode_requires_write = (access_mode & 2) != 0;
37 if (file_is_read_only && mode_requires_write)
void __cdecl __acrt_errno_map_os_error(unsigned long)
#define ERROR_ACCESS_DENIED
BOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
#define _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(expr, errorcode)
#define FILE_ATTRIBUTE_READONLY
#define FILE_ATTRIBUTE_DIRECTORY
errno_t __cdecl _waccess_s(wchar_t const *const path, int const access_mode)
int __cdecl _waccess(wchar_t const *const path, int const access_mode)
DWORD WINAPI GetLastError(void)