#include <corecrt_internal.h>
#include <io.h>
Go to the source code of this file.
◆ _waccess()
Definition at line 52 of file waccess.cpp.
53{
55}
errno_t __cdecl _waccess_s(wchar_t const *const path, int const access_mode)
◆ _waccess_s()
Definition at line 17 of file waccess.cpp.
18{
21
24 {
27 }
28
29
31 return 0;
32
33
35 bool const mode_requires_write = (access_mode & 2) != 0;
36
37 if (file_is_read_only && mode_requires_write)
38 {
42 }
43
44
45 return 0;
46
47}
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
DWORD WINAPI GetLastError(void)
Referenced by _waccess().