CFileFind::IsTemporary

BOOL IsTemporary( ) const;

Return Value

Nonzero if successful; otherwise 0.

Remarks

Call this member function to determine if the found file is a temporary file. 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.

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

Example

See the example for CFileFind::GetLength.

CFileFind OverviewClass MembersHierarchy Chart