This can be done with Windows API
. Please see:http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418%28v=vs.85%29.aspx
[EDIT: answering a follow-up question]
Pay attention that these functions find all file system objects in a current directory: both files and directories. Pay attention that the structure
has the field
, the values of the fields are
constants, and one of the attributes is
. You can test if this bit is set in the field
for each found item, and, if this is a directory, recursively find files in it.
Is it clear now?
You could easily find this information by yourself.—SA