if((dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY) { return bIsDirCheck; } else { return !bIsDirCheck; }}