Problem using GetAttr [SOLVED]
This is rather confusing to me, and I would like someone to shed some light on the subject.
I am using GetAttr to get the attributes of each item in a listview. For some reason, it doesn't see the Program Files directory as a directory, but as a 0-byte file instead.
I looked at its attributes in Explorer, and I found that its read-only attribute had been set. Thinking that might be what was causing the problem, I turned it off and tried my program again. Same result. It still sees the Program Files directory as a 0-byte file. Could I have just found a known bug in the function, or is that actually the way it's supposed to work?
Is there any way I can look at the file's type rather than its attributes? Explorer sees its type fine as a file folder, so that might be the approach I will take.