Home
last modified time | relevance | path

Searched refs:FILE_ATTRIBUTE_READONLY (Results 1 – 25 of 109) sorted by relevance

12345

/reactos/modules/rostests/kmtests/kernel32/
H A DFileAttributes_user.c26 …KmtSendUlongToDriver(IOCTL_EXPECT_SET_ATTRIBUTES, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_NORMAL); in START_TEST()
27 Ret = SetFileAttributesW(FileName, FILE_ATTRIBUTE_READONLY); in START_TEST()
46 KmtSendUlongToDriver(IOCTL_RETURN_QUERY_ATTRIBUTES, FILE_ATTRIBUTE_READONLY); in START_TEST()
48 ok_eq_hex(Attributes, FILE_ATTRIBUTE_READONLY); in START_TEST()
51 …KmtSendUlongToDriver(IOCTL_RETURN_QUERY_ATTRIBUTES, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_NORMA… in START_TEST()
53 ok_eq_hex(Attributes, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_NORMAL); in START_TEST()
72 …KmtSendUlongToDriver(IOCTL_EXPECT_SET_ATTRIBUTES, FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_READONLY); in START_TEST()
73 Ret = SetFileAttributesW(FileName, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_DIRECTORY); in START_TEST()
87 …KmtSendUlongToDriver(IOCTL_RETURN_QUERY_ATTRIBUTES, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_DIREC… in START_TEST()
89 ok_eq_hex(Attributes, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_DIRECTORY); in START_TEST()
[all …]
/reactos/modules/rostests/winetests/xcopy/
H A Dxcopy.c115 SetFileAttributesA("xcopy1", FILE_ATTRIBUTE_READONLY); in test_keep_attributes()
119 … ok((GetFileAttributesA("xcopytest\\xcopy1") & FILE_ATTRIBUTE_READONLY) != FILE_ATTRIBUTE_READONLY, in test_keep_attributes()
126 … ok((GetFileAttributesA("xcopytest\\xcopy1") & FILE_ATTRIBUTE_READONLY) == FILE_ATTRIBUTE_READONLY, in test_keep_attributes()
/reactos/modules/rostests/winetests/shell32/
H A Dshellpath.c361 FILE_ATTRIBUTE_READONLY,
380 FILE_ATTRIBUTE_READONLY,
399 FILE_ATTRIBUTE_READONLY,
417 FILE_ATTRIBUTE_READONLY,
426 FILE_ATTRIBUTE_READONLY,
435 FILE_ATTRIBUTE_READONLY,
482 FILE_ATTRIBUTE_READONLY,
510 FILE_ATTRIBUTE_READONLY,
528 FILE_ATTRIBUTE_READONLY,
546 FILE_ATTRIBUTE_READONLY,
[all …]
/reactos/sdk/lib/ucrt/filesystem/
H A Dwchmod.cpp31 attributes.dwFileAttributes &= ~FILE_ATTRIBUTE_READONLY; in _wchmod()
35 attributes.dwFileAttributes |= FILE_ATTRIBUTE_READONLY; in _wchmod()
H A Dwaccess.cpp34 bool const file_is_read_only = (attributes.dwFileAttributes & FILE_ATTRIBUTE_READONLY) != 0; in _waccess_s()
/reactos/dll/shellext/shellbtrfs/
H A Drecv.cpp502 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_unlink()
529 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_rmdir()
577 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_setxattr()
594 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_setxattr()
669 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_removexattr()
677 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_removexattr()
748 if (lastwriteatt & FILE_ATTRIBUTE_READONLY) { in cmd_write()
759 if (lastwriteatt & FILE_ATTRIBUTE_READONLY) { in cmd_write()
953 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_truncate()
974 if (att & FILE_ATTRIBUTE_READONLY) { in cmd_truncate()
[all …]
/reactos/base/shell/cmd/
H A Dinternal.c464 if (dwAttribs & FILE_ATTRIBUTE_READONLY) in DeleteFolder()
465 SetFileAttributes(szFullPath, dwAttribs & ~FILE_ATTRIBUTE_READONLY); in DeleteFolder()
511 if (dwAttribs & FILE_ATTRIBUTE_READONLY) in DeleteFolder()
513 SetFileAttributes(Directory, dwAttribs & ~FILE_ATTRIBUTE_READONLY); in DeleteFolder()
H A Ddel.c106 if (f->dwFileAttributes & FILE_ATTRIBUTE_READONLY) in RemoveFile()
214 if (dwAttrFlags & ATTR_READ_ONLY && !(f.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) in DeleteFiles()
222 … if (dwAttrFlags & ATTR_N_READ_ONLY && (f.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) in DeleteFiles()
/reactos/dll/win32/userenv/
H A Ddirectory.c274 if (FindData.dwFileAttributes & FILE_ATTRIBUTE_READONLY) in RecursiveRemoveDir()
277 FindData.dwFileAttributes & ~FILE_ATTRIBUTE_READONLY); in RecursiveRemoveDir()
290 if (FindData.dwFileAttributes & (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_SYSTEM)) in RecursiveRemoveDir()
/reactos/base/applications/cmdutils/attrib/
H A Dattrib.c86 (dwAttributes & FILE_ATTRIBUTE_READONLY) ? L'R' : L' ', in PrintAttributes()
383 AttribsMasks.dwMask |= FILE_ATTRIBUTE_READONLY; in wmain()
385 AttribsMasks.dwAttrib |= FILE_ATTRIBUTE_READONLY; in wmain()
387 AttribsMasks.dwAttrib &= ~FILE_ATTRIBUTE_READONLY; in wmain()
/reactos/modules/rostests/tests/copymove/
H A Dcopymove.c214 CreateTestFile(_T("begin.dat"), FILE_ATTRIBUTE_READONLY); in main()
220 CheckTestFile(_T("end.dat"), FILE_ATTRIBUTE_ARCHIVE | FILE_ATTRIBUTE_READONLY); in main()
252 CreateTestFile(_T("end.dat"), FILE_ATTRIBUTE_READONLY); in main()
/reactos/sdk/lib/crt/stdio/
H A Dstat64.c84 if (!(hfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) in _tstat64()
149 if (!(hfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) in _fstat64()
/reactos/base/applications/rapps/
H A Dintegrity.cpp19 …ile = CreateFileW(lpFileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL); in VerifyInteg()
/reactos/dll/win32/shell32/
H A Dshlfileop.cpp457 if (IsAttrib(dwAttr, FILE_ATTRIBUTE_READONLY)) in SHNotifyRemoveDirectoryW()
458 if (SetFileAttributesW(path, dwAttr & ~FILE_ATTRIBUTE_READONLY)) in SHNotifyRemoveDirectoryW()
632 if (IsAttrib(dwAttr, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_SYSTEM)) in SHNotifyDeleteFileW()
633 if (SetFileAttributesW(path, dwAttr & ~(FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_SYSTEM))) in SHNotifyDeleteFileW()
738 if (IsAttrib(dwAttr, FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_SYSTEM)) in SHNotifyMoveFileW()
793 if (IsAttrib(attribs, FILE_ATTRIBUTE_READONLY)) in SHNotifyCopyFileW()
794 SetFileAttributesW(dest, attribs & ~FILE_ATTRIBUTE_READONLY); in SHNotifyCopyFileW()
796 if (GetFileAttributesW(dest) & FILE_ATTRIBUTE_READONLY) in SHNotifyCopyFileW()
798 SetFileAttributesW(dest, attribs & ~FILE_ATTRIBUTE_READONLY); in SHNotifyCopyFileW()
799 if (GetFileAttributesW(dest) & FILE_ATTRIBUTE_READONLY) in SHNotifyCopyFileW()
[all …]
/reactos/modules/rosapps/applications/net/tsclient/rdesktop/
H A Ddisk.h22 #define FILE_ATTRIBUTE_READONLY 0x00000001 macro
H A Ddisk.c641 file_attributes |= FILE_ATTRIBUTE_READONLY; in disk_query_information()
774 if (file_attributes & FILE_ATTRIBUTE_READONLY) in disk_set_information()
1169 file_attributes |= FILE_ATTRIBUTE_READONLY; in disk_query_directory()
/reactos/dll/win32/shell32/dialogs/
H A Dfiledefext.cpp556 if (FileInfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY) in InitFileAttr()
742 … dwAttr &= ~(FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_ARCHIVE); in GeneralPageProc()
745 dwAttr |= FILE_ATTRIBUTE_READONLY; in GeneralPageProc()
1159 attrs &= ~(FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_READONLY); in OnFolderCustApply()
1164 attrs &= ~(FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_READONLY); in OnFolderCustApply()
1197 attrs |= FILE_ATTRIBUTE_READONLY; in OnFolderCustApply()
/reactos/dll/3rdparty/libtiff/
H A Dtif_win32.c282 (m == O_RDONLY)?FILE_ATTRIBUTE_READONLY:FILE_ATTRIBUTE_NORMAL, in TIFFOpen()
323 (m == O_RDONLY)?FILE_ATTRIBUTE_READONLY:FILE_ATTRIBUTE_NORMAL, in TIFFOpenW()
/reactos/dll/win32/kernel32/client/file/
H A Dlfile.c120 iAttribute &= FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM; in _lcreat()
/reactos/modules/rosapps/lib/vfdlib/
H A Dvfdguiopen.c280 file_attr &= ~(FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_DIRECTORY); in OnImage()
318 (file_attr & (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_COMPRESSED | FILE_ATTRIBUTE_ENCRYPTED))) { in OnImage()
/reactos/modules/rostests/apitests/mspatcha/
H A Dmspatcha.c166 DWORD dwAttr = (bWrite ? FILE_ATTRIBUTE_NORMAL : FILE_ATTRIBUTE_READONLY); in open_file()
176 FILE_ATTRIBUTE_READONLY, NULL); in compare_file_()
/reactos/modules/rosapps/applications/explorer-old/shell/
H A Dshellfs.cpp105 pw32fdata->dwFileAttributes |= FILE_ATTRIBUTE_READONLY; in fill_w32fdata_shell()
333 if (w32fd.dwFileAttributes & FILE_ATTRIBUTE_READONLY) in read_directory()
/reactos/base/services/nfsd/
H A Dsetattr.c88 ((basic_info->FileAttributes & FILE_ATTRIBUTE_READONLY) == 0)) { in handle_nfs41_setattr()
123 if (basic_info->FileAttributes & FILE_ATTRIBUTE_READONLY) { in handle_nfs41_setattr()
/reactos/base/applications/cmdutils/xcopy/
H A Dxcopy.c552 if ((destAttribs & FILE_ATTRIBUTE_READONLY) && in XCOPY_DoCopy()
554 SetFileAttributesW(copyTo, destAttribs & ~FILE_ATTRIBUTE_READONLY); in XCOPY_DoCopy()
582 (GetFileAttributesW(copyTo) & ~FILE_ATTRIBUTE_READONLY)); in XCOPY_DoCopy()
/reactos/dll/shellext/cabview/
H A Dutil.h126 return ((att & FILE_ATTRIBUTE_READONLY) ? SFGAO_READONLY : 0) | in MapFSToSFAttributes()

12345