If you use FindFirstFile and FindNextFile, you must have declared a WIN32_FIND_DATA structure. This is defined this way:
typedef struct _WIN32_FIND_DATA {
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
DWORD dwReserved0;
DWORD dwReserved1;
TCHAR cFileName[ MAX_PATH ];
TCHAR cAlternateFileName[ 14 ];
} WIN32_FIND_DATA, *PWIN32_FIND_DATA;
The first field (dwFileAttributes) contains the attributes. You can test it with all the FILE_ATTRIBUTE_.... constants,
like:
if ( wfd.dwFileAttributes == FILE_ATTRIBUTE_SYSTEM )
{ // This is a system file
.... }
Marcel