This can be done with Windows API
. Please see:
[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.