Поделиться через


CFileFind::IsReadOnly

Call this member function to determine if the found file is read-only.

BOOL IsReadOnly( ) const;

Возвращаемое значение

Nonzero if successful; otherwise 0.

Заметки

A read-only file is marked with FILE_ATTRIBUTE_READONLY, a file attribute identified in the WIN32_FIND_DATA structure. Applications can read such a file, but they cannot write to it or delete it.

You must call FindNextFile at least once before calling IsReadOnly.

See the member function MatchesMask for a complete list of file attributes.

Пример

See the example for CFileFind::GetLength.

Требования

Header: afx.h

См. также

Основные понятия

CFileFind Class

CFileFind Members

Hierarchy Chart