Export (0) Print
Expand All

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

Show:
© 2014 Microsoft