Dela via


CFileFind::IsTemporary

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

BOOL IsTemporary( ) const;

Return Value

Nonzero if successful; otherwise 0.

Remarks

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.

Example

See the example for CFileFind::GetLength.

Requirements

Header: afx.h

See Also

Reference

CFileFind Class

Hierarchy Chart

Other Resources

CFileFind Members