Hello, I'm using wfd.dwFileAttributes to see if a file is a file or a directory. when I cmp eax,FILE_ATTRIBUTE_DIRECTORY (10h) this always fails for Content.IE5 and for the cache folders listed under Content.IE5. These things are all directories but they return value of 14h not 10h. So I compare return to 14h and if true it is directory. My question is will this always work? I can't find constants 10h and 14h in windows.inc, does anybody know what 14h represents. thanks and best regards, czDrillard
FILE_ATTRIBUTE_SYSTEM or FILE_ATTRIBUTE_DIRECTORY, what do you get? try test eax instead of cmp eax.
FILE_ATTRIBUTE_SYSTEM 0x00000004 FILE_ATTRIBUTE_DIRECTORY 0x00000010
thanx fresh, I will try test instead of cmp but I still don't know what the return value of 14h is or where it comes from. best regards, czDrillard
FILE_ATTRIBUTE_SYSTEM 0x00000004 FILE_ATTRIBUTE_DIRECTORY 0x00000010 FILE_ATTRIBUTE_SYSTEM or FILE_ATTRIBUTE_DIRECTORY, what do you get?the answer is, and your answer, is 14h. FILE_ATTRIBUTE_SYSTEM or FILE_ATTRIBUTE_DIRECTORY = 4h or 10h = 14h = your return value. that means that is a system directory (which is what Content.IE5 is).