I am trying to check weather a file is returned by FindNextFile is actually a folder I'm not sure if this is the correct best way of doing it.

mov eax, wfd.dwFileAttributes
and eax, FILE_ATTRIBUTE_DIRECTORY
.if eax==FILE_ATTRIBUTE_DIRECTORY
;code
;...
.endif
Posted on 2001-12-07 17:57:32 by Predator
I don't know if your code works (did not test it) but I
know this works...

mov eax, wfd.dwFileAttributes
.if eax & FILE_ATTRIBUTE_DIRECTORY
Posted on 2001-12-07 18:58:35 by anon
that is much more readable I'll use it
Posted on 2001-12-07 19:17:32 by Predator