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


CFileFind::IsTemporary

Call this member function to determine if the found file is a temporary file.

BOOL IsTemporary( ) const;

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

Nonzero if successful; otherwise 0.

Заметки

A temporary file is marked with FILE_ATTRIBUTE_TEMPORARY, a file attribute identified in the WIN32_FIND_DATA structure. A temporary file is used for temporary storage. Applications should write to the file only if absolutely necessary. Most of the file's data remains in memory without being flushed to the media because the file will soon be deleted.

You must call FindNextFile at least once before calling IsTemporary.

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