Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 6:20
Loreia10-Jan-09 6:20 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:46
sitebuilderLuc Pattyn10-Jan-09 6:46 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 7:55
Loreia10-Jan-09 7:55 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 8:09
sitebuilderLuc Pattyn10-Jan-09 8:09 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 8:33
Loreia10-Jan-09 8:33 
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 8:59
professional Randor 10-Jan-09 8:59 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:09
Loreia10-Jan-09 10:09 
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 10:45
professional Randor 10-Jan-09 10:45 
loreia wrote:
My understanding is: if FAT32 doesn't support TEMP files, than SetFileAttributes should fail to set TEMP attribute.


You need to seperate FAT from the operating system within your mind. When you call SetFileAttributes and set the file as FILE_ATTRIBUTE_TEMPORARY what happens internally is that the NT kernel calls CcInitializeCacheMap[^] and CcSetAdditionalCacheAttributes[^] which disables write-behind and essentially enables a "lazy write" which means that the file may or may not be written to disk depending on an internal algorithm based on critera such as i/o priority, filesize, media type ect...

The difference is that FAT32 does not have anywhere to store this extra information as it is an older technology. NTFS on the other hand was designed to store additional file attributes for both now and in the future as it can be extended.


FindFirstFile[^] has many other problematic surprises[^]. Some of which stem from supporting 16 bit applications.

GetFileAttributes is not lying to you when it says the file is FILE_ATTRIBUTE_TEMPORARY.

Best Wishes,
-David Delaune
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:56
Loreia10-Jan-09 10:56 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 10:11
sitebuilderLuc Pattyn10-Jan-09 10:11 
QuestionRe: ::FindFirstFile problem Pin
David Crow12-Jan-09 3:36
David Crow12-Jan-09 3:36 
AnswerRe: ::FindFirstFile problem Pin
Loreia12-Jan-09 7:24
Loreia12-Jan-09 7:24 
QuestionCan I handle click events on a static control [SOLVED] Pin
sashoalm10-Jan-09 4:15
sashoalm10-Jan-09 4:15 
AnswerRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 4:35
professional Randor 10-Jan-09 4:35 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 5:01
sashoalm10-Jan-09 5:01 
GeneralRe: Can I handle click events on a static control Pin
Code-o-mat10-Jan-09 5:43
Code-o-mat10-Jan-09 5:43 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 6:15
professional Randor 10-Jan-09 6:15 
GeneralRe: Can I handle click events on a static control [modified] Pin
sashoalm10-Jan-09 6:59
sashoalm10-Jan-09 6:59 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:32
sashoalm10-Jan-09 7:32 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 7:35
professional Randor 10-Jan-09 7:35 
GeneralRe: Can I handle click events on a static control Pin
Jijo.Raj10-Jan-09 6:57
Jijo.Raj10-Jan-09 6:57 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:04
sashoalm10-Jan-09 7:04 
QuestionLayoutRTL creating issues in displaying image data Pin
Alex@9C10-Jan-09 0:17
Alex@9C10-Jan-09 0:17 
QuestionCFile::sharingViolation exception? Pin
AnayKulkarni10-Jan-09 0:05
AnayKulkarni10-Jan-09 0:05 
AnswerRe: CFile::sharingViolation exception? Pin
Stuart Dootson10-Jan-09 0:12
professionalStuart Dootson10-Jan-09 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.