FindFirstFile, FindNextFile, GetFileInformationByHandle, GetFileAttributes:

http://msdn2.microsoft.com/en-us/library/aa364418.aspx